Marko Novakovic
08/05/2021, 1:08 PMViewModel? am using compose’s MutableState but I see a lot of examples with Flow but I don’t see any need for using Flow to expose state in pure compose app. is Flow used in app in transition from View to Compose to bridge the gap and use some of the existing code or Flow is for some reason more favourable than MutableState?Colton Idle
08/05/2021, 1:45 PMMarko Novakovic
08/05/2021, 1:46 PMColton Idle
08/05/2021, 1:47 PMAdam Powell
08/05/2021, 2:03 PMColton Idle
08/05/2021, 2:09 PMManuel Vivo
08/05/2021, 2:21 PMLiveData or Flow.flowWithLifecycle is that you’re going to avoid recompositions when the app is in the background.
If you don’t care about that and you don’t need the power of Flow operators (that shouldn’t be needed for uiState), then mutableStateOf is perfect!Marko Novakovic
08/05/2021, 3:10 PMflowWithLifecycle actually doing in compose world?Adam Powell
08/05/2021, 3:21 PMAdam Powell
08/05/2021, 3:22 PMMarko Novakovic
08/05/2021, 3:23 PM