Preparing Your App's Architecture for Declarative UI
summary
Explains how an existing Android app (sample: Space Library, plus Art Randomizer) separates presentation into immutable state snapshots, a small viewmodel-as-store, a reducer for state transitions and an interactor for data layer work so the same business logic can render via Jetpack Compose or legacy views. Shows concrete code patterns: hoisting component state to the nearest ancestor, scoping navigational → screen → component state hierarchies, and using state hoisting and interactor + reducer to make declarative migration incremental.
AI-written summary · about
chapters (14)
- 0:00Introduction and speakers
- 1:57Declarative vs imperative UI
- 4:22Preparing existing apps for declarative UI
- 7:14Identifying states and properties
- 13:58State hoisting and stateless components
- 15:20Unidirectional data flow and state mutations
- 18:50Introducing interactors for data layer
- 20:58Scoping state into hierarchies
- 24:37App architecture breakdown
- 29:11State as a function of UI
- 30:35Q&A: Data synchronization flow
- 33:01Q&A: Refactoring and coexistence
- 34:31Q&A: Testing Compose components
- 35:13Closing and resources
