After this lesson you will
- Separate a route that owns wiring from content composables that only render state
- Pass state down and send user intent back up through callbacks
- Distinguish persistent state from one-time events through two separate collection paths
Duration12 min
DifficultyBeginner
Compose Screens from State
The route owns the wiring, the content composable only renders state. And why not put a Toast in state?
- 01Lesson Goal
- 02Part 1: A Composable Only Answers "What Is the User Seeing?"
- 03Part 2: The Route Owns All the Wiring
- 04Part 3: State Goes Down, Intent Comes Up
- 05Part 4: Branch Screen Modes in One Place Inside the Composable
- 06Part 5: You Can Still Use Local State
- 07Part 6: State and One-Time Events Travel Different Paths
- 08Code Reading Path
- 09Bad Smells
- 10References
- 11Key Takeaway
Topics: mobile-action-pro, compose-state
11 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: A Composable Only Answers "What Is the User Seeing?", … — plus 64 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in