LazyColumn vs Column in Jetpack Compose: When to Switch for Smooth Lists
Performance differences between LazyColumn and Column, a minimal implementation example, and practical verification steps for Android UI lists.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Performance differences between LazyColumn and Column, a minimal implementation example, and practical verification steps for Android UI lists.
rememberSaveable automatically saves and restores Jetpack Compose UI state across configuration changes using a Bundle-like mechanism. Covers usage, bundle limits, and common pitfalls with practical examples.
Use Jetpack Compose remember to keep expensive UI objects alive across recompositions without rebuilding them on every pass.
Implement state hoisting in Jetpack Compose to build stateless, reusable components that are easier to test and maintain.
A decision guide for persisting Jetpack Compose UI state across configuration changes and process death, comparing rememberSaveable, ViewModel with SavedStateHandle, and external persistence with trade-offs and a concrete hoisting pattern.
A single mutableStateOf at the top of your composable tree causes full-screen recomposition on every keystroke. Hoisting state to the narrowest common ancestor narrows recomposition scope, enables stateless previews, and keeps unidirectional data flow honest.
A stateful Compose component is hard to test and reuse. Learn how to hoist state to the caller, keep composables stateless, and avoid the recomposition and prop-drilling traps.
Strong Skipping mode in Jetpack Compose Compiler 1.5.0+ infers lambda stability automatically, but conservative capture analysis and cross-module limits mean you must verify with compiler metrics and Layout Inspector before relying on it.
Learn how to prevent UI state loss during Android configuration changes using remember, rememberSaveable, and derivedStateOf in Jetpack Compose.