Join Slack
Powered by
Do you guys somehow pass the viewmodel's scope int...
# android-architecture
g
ghedeon
03/09/2019, 4:32 PM
Do you guys somehow pass the viewmodel's scope into the interactor/usecase? Sometimes you'd want to subscribe to rx in the usecase, maybe transform
coroutine<->rx<->livedata
, etc. So, there is a need for the lifecycle, coroutine scope, etc. Or, you just define
clear()
method and call it from the viewmodel?
2
Views
Open in Slack
Previous
Next