Choosing Between remember, rememberSaveable, and ViewModel for UI State in Jetpack Compose
Learn when to use remember, rememberSaveable, or ViewModel for Jetpack Compose UI state based on configuration‑change and process‑death survival needs.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn when to use remember, rememberSaveable, or ViewModel for Jetpack Compose UI state based on configuration‑change and process‑death survival needs.
Learn how to preserve Jetpack Compose UI state across configuration changes and process death by splitting ephemeral UI state from business state.
State hoisting moves mutable state out of composables, turning them into pure UI functions. Learn why, how, and when to hoist state in Jetpack Compose for better testability and reuse.
When Compose UI resets to defaults after your app is killed and relaunched, the fault usually lies in remember, missing Savers, or unwired SavedStateHandle. This guide walks through ordered diagnostics, concrete fixes, and escalation criteria.
Learn how rememberSaveable ties UI state to the Compose tree, the Bundle trust model, and the failure modes you must verify.
Learn how to implement state hoisting in Jetpack Compose to move from rigid, stateful components to flexible, stateless ones that are easier to test and control.
A diagnostic guide for UI stutter in Jetpack Compose LazyColumn caused by excessive recompositions. Covers recognizable symptoms, a cause table, ordered checks with Layout Inspector and Profiler, fixes tied to findings, and escalation criteria.
Learn how to choose between remember, rememberSaveable, and ViewModel in Jetpack Compose to ensure your UI state survives rotations and process death without bloating your architecture.
A decision guide for the LazyColumn key parameter: when stable IDs matter, why index keys are a trap, and how to verify state survives inserts and reorders.