YUNOVA · Android Development · Module 11: Advanced Jetpack Compose
State hoisting and recomposition
State hoisting and recomposition
Key points
- State hoisting moves state up to the caller and passes value and event down.
- Compose recomposes only the composables that read state that changed.
- remember keeps a value across recompositions; rememberSaveable also survives rotation.