<https://link.medium.com/sm7NfjtoH6>
# android
s
i
FWIW, you should really consider using
by viewModels()
from
fragment-ktx
or
activity-ktx
than the
by lazy { ViewModelProvider(this) }
K 2
f
Very interesting article. Sounds promising but my main concern is about modelling events. So
StateFlow
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?