pavi2410
04/03/2020, 8:48 PMmodule {
viewModel { ... }
...
}
My question is that whether the ViewModel is automatically scoped to the lifecycle of Fragment or not?
If not, then do I need to scope ViewModel to the Fragment like this?
module {
scope<MyFragment> {
viewModel { ... }
}
}
voben
04/03/2020, 8:57 PMvoben
04/03/2020, 8:58 PMonCleared
function of the viewmodel and check that it is called when the fragment is destroyedpavi2410
04/05/2020, 6:23 PM