Recomposition Explained
How Compose updates the UI.
What Is Recomposition?
Recomposition is Compose re-running your composable functions to update the UI when the state they read changes. It is how the screen stays in sync with your data.
Triggered by State Reads
Compose tracks which composables read which state. When a state value changes, only the composables that read it are scheduled to recompose.
All lessons in this course
- State with remember and mutableStateOf
- Recomposition Explained
- State Hoisting
- rememberSaveable