Mar 24, 2023Mar 24, 2023 · 2 min read · 270 viewsRetryable StateFlowA common pattern used to observe the state of a feature can look something like this (borrowed from NowInAndroid): ViewModel.kt val uiState: StateFlow<MainActivityUiState> = userDataRepositor2 min read · 270 views