Dan Tech Academy
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.

What this lesson covers
  1. 01Lesson Goal
  2. 02Part 1: Skipping Decides Which UI Doesn't Need Redrawing
  3. 03Part 2: The Menu's Stability Contract
  4. 04Part 3: One State Change Passes Two Filters
  5. 05Checkpoint
  6. 06Bad Smells
  7. 07Cheat Sheet: @Stable And @Immutable
  8. 08References
  9. 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
Sign in