miqbaldc
01/03/2022, 3:03 PMState
& Side-Effect
to a Composable screen, instead of passing the ViewModel
?
ViewModel
ref based on: https://github.com/orbit-mvi/orbit-sample-stocklist-jetpack-compose/blob/main/app/[…]otlin/org/orbitmvi/orbit/sample/stocklist/list/ui/ListScreen.kt
Code in 🧵
1️⃣ , 2️⃣ or 3️⃣ ?Benoît
01/04/2022, 11:27 AMsnapshotFlow
comes from
what about 4️⃣ : Passing a state: StateFlow
and a sideEffect: Flow
?miqbaldc
01/04/2022, 11:46 AMBenoît
01/04/2022, 12:37 PMlaunch
in LaunchedEffect, as you're already in a coroutineappmattus
01/05/2022, 8:25 AMmiqbaldc
01/05/2022, 8:54 AMUpdateEmailState
directly, until we implement side-effect