William Reed
12/14/2021, 2:57 PMStateFlow
in my viewmodel that is backed by the Flow
based jetpack DataStore. Any recommendations on how to do this without using runBlocking
to get the initial value?
i was thinking of calling a suspend fun
to do this in my view model init
, but then the StateFlow
would not be available as soon as it is requested by the viewAdam Powell
12/14/2021, 3:05 PMWilliam Reed
12/14/2021, 3:06 PMAdam Powell
12/14/2021, 3:07 PMWilliam Reed
12/14/2021, 3:07 PMAdam Powell
12/14/2021, 3:07 PMAdam Powell
12/14/2021, 3:08 PM