Hi, im trying to learn coroutines/Flow
I want to subscribe my
viewModel.state
flow in android Activity, between onStart and onStop
I do that, and notice that after having activity.onStop called, next activity.onStart doesn't start listening to the flow
So I conclude scopes are not reusable
But this is android reality and I need that. I need equivalent of rx
compositeDisposable.clear()
Is the only solution to have abstraction over the scope which will create new scope instances?