Recomposition: What Triggers a Redraw
Understand when Compose re-runs your code.
What Is Recomposition?
Recomposition is Compose re-running your Composable functions to update the screen after some state they read has changed.
Triggered by State Reads
A redraw is triggered only when a piece of state a Composable read actually changes. No state change means no recomposition.
All lessons in this course
- remember & mutableStateOf
- Recomposition: What Triggers a Redraw
- Build a Tap Counter
- rememberSaveable Across Rotation