Overview
You can find more information about ViewModel, StateFlow, and Side Effects in Jetpack Compose apps from the following resources.
Note that Coroutines are also an important subject to understand: I have recently updated supplementary lectures explaining the basics of Coroutines and Flows in Kotlin (see the Kotlin coroutine lecture notes).
- (PDF) Talib’s course notes: ViewModel, Coroutines, and Side Effects
- (PDF) Talib’s course notes: ViewModel and StateFlow
- (2 min read) Stateflow with Jetpack Compose
- (Google Documentation) Save UI State in Compose
- (Google Documentation) Introduction to ViewModel
- (Part of Assignment 3) (Codelab) AdvancedState in Jetpack Compose