Hi guys, I’m using koin for di, I made mistake and put root activity’s viewmodel to activity scope and now viewmodel doesn’t get retained after rotation. The problem I needed to solve by putting viewmodel into activity scope is to allow child viewmodels inject root activity’s viewmodel. Is there way to do that and retain view model?
07/07/2020, 8:30 PM
Have you considered using scopes?
07/07/2020, 8:34 PM
As i mentioned i’m using activity scope.
07/07/2020, 8:38 PM
Yeah what I thought is change the activity scope with a custom one.
07/08/2020, 8:48 PM
The scope that i want to create practically is the scope of view model of the activity