Preserving Compose UI State Across Rotation and Process Death with rememberSaveable
Learn how to preserve Jetpack Compose UI state across configuration changes and process death by splitting ephemeral UI state from business state.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to preserve Jetpack Compose UI state across configuration changes and process death by splitting ephemeral UI state from business state.
Stop guessing why your UI elements are unclickable. Learn how to use Android Studio's Layout Inspector and 3D mode to identify overlapping views and z-index conflicts in real-time.
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.
A big List kills feed performance. Here's how to stream Room data with Paging 3 and LazyColumn, plus the invalidation and placeholder trade-offs you need to know.
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.
Rotation wipes Compose state held in plain remember. Hoist it to the caller and switch to rememberSaveable, and your forms, toggles, and counters survive configuration changes with no ViewModel boilerplate.