Colton Idle
06/09/2022, 11:14 PMcurrentUser = Flow<User>
Would this be better represented as a StateFlow?Erick Sumargo
06/09/2022, 11:37 PMFrancesc
06/10/2022, 2:07 AMStateFlow
you get an implicit distinctUntilChanged
and it emits the current value when a new collector starts collecting, is that what you want?
I'm a bit puzzled by the "AppState" part though, if you mean a class that represents your UI state that the UI consume, then you should not have `flow`s here.DALDEI
06/10/2022, 4:39 AMFrancesc
06/10/2022, 5:38 AMColton Idle
06/10/2022, 11:39 AMDALDEI
06/10/2022, 5:39 PM