hitherejoe / GithubTrending

An Android project for the Caster.io course on clean architecture
172 stars 59 forks source link

Where should I handle Rxjava disposables? #10

Open mfathy opened 5 years ago

mfathy commented 5 years ago

Where should I handle Rxjava disposables in domain layer usecase "interactors" or ViewModels? What is better ?

I know that you can dispose when onCleared method on viewModel is called.