0PricingLogin
Jetpack Compose Academy · Lesson

Deferring State Reads

Read state late to shrink recomposition scope.

Reading State Has a Cost

Every place you read a Compose state value becomes a subscriber. When that state changes, every reader recomposes.

Recomposition Scope

The nearest enclosing Composable that reads a state is its recomposition scope. Read high up, and a lot redraws together.

All lessons in this course

  1. Stable vs Unstable Parameters
  2. Skipping, @Stable & @Immutable
  3. Deferring State Reads
  4. Layout Inspector & Recomposition Counts
← Back to Jetpack Compose Academy