android-architecture icon indicating copy to clipboard operation
android-architecture copied to clipboard

Clearing the disposables in onStop

Open lexkarel opened this issue 6 years ago • 2 comments

lexkarel avatar May 05 '19 20:05 lexkarel

Why?

oldergod avatar May 06 '19 16:05 oldergod

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.

lzayas-chwy avatar May 06 '19 17:05 lzayas-chwy