android-architecture
android-architecture copied to clipboard
Clearing the disposables in onStop
Why?
Why?
I was reading the issue that was reported and I tried to fix it.
When the fragment becomes visible to the user we will subscribe to the view ViewModel observables and when the fragment is no longer visible to the user we'll clean all the subscriptions because we don't want to render a view state if the fragment isn't visible.