Shreyas Patil
05/22/2020, 6:38 PMIan Lake
05/22/2020, 6:42 PMby viewModels()
from fragment-ktx
or activity-ktx
than the by lazy { ViewModelProvider(this) }
fada21
05/27/2020, 9:07 PMStateFlow
can capture state like LiveData
but what to do when we have to handle events like described here for LiveData
https://medium.com/androiddevelopers/livedata-with-snackbar-navigation-and-other-events-the-singleliveevent-case-ac2622673150. Is there a solution for any Flow
to only collect once to active at that time collectors?