refactor: hoist state out of UserProfile

Solves the issue of every pop of the backstack causing data to be re-fetched,
but now has the issue of the data being stale for a few frames. Still better
than the current state, so I'll take it.
This commit is contained in:
Harsh Shandilya 2025-05-26 19:02:37 +05:30
parent 5d65d1ea51
commit 0d3c08c10a
5 changed files with 76 additions and 34 deletions

View file

@ -25,6 +25,8 @@ android {
namespace = "dev.msfjarvis.claw.common"
}
whetstone.addOns.compose = true
androidComponents { beforeVariants { (it as HasUnitTestBuilder).enableUnitTest = false } }
anvil { generateDaggerFactories.set(true) }
@ -40,6 +42,7 @@ dependencies {
api(libs.androidx.compose.ui)
api(libs.dagger)
api(libs.javax.inject)
api(projects.api)
api(projects.core)
api(projects.database.core)
api(projects.model)