After this lesson you will
- Know that strong skipping compares stable params with equals() and unstable params by identity
- Read the Menu's stability contract and explain why ImmutableList is enough for the compiler to infer stable
- Tell apart the two filters that block unneeded recomposition: distinctUntilChanged on the Flow and skipping in the Composable
Duration8 min
DifficultyBeginner
Control Recomposition
Why the Menu can skip recomposition: stability and strong skipping.
- 01Lesson Goal
- 02Part 1: Skipping Decides Which UI Doesn't Need Redrawing
- 03Part 2: The Menu's Stability Contract
- 04Part 3: One State Change Passes Two Filters
- 05Checkpoint
- 06Bad Smells
- 07Cheat Sheet: @Stable And @Immutable
- 08References
- 09Key Takeaways
Topics: mobile-action-pro, compose-state
9 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: Skipping Decides Which UI Doesn't Need Redrawing, … — plus 114 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in