English
Topic 16. MVVM architecture, navigation, and working with a database in Compose Multiplatform applications
Goal: learn to separate screen state from the UI, pass route arguments, work with a repository, and test a ViewModel.
Lecture contents
- MVVM and unidirectional data flow — Why one composable is not enough · Consistent dependencies · Unidirectional data flow
- Navigation as history state — Navigation as history state
- Repository and loading data — The repository boundary and the loading lifecycle
- Events, tests, and packaging — Errors, one-time events, and drafts · Example 4. Testing a ViewModel with a fake repository · Packaging and final checks