You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what I want to achieve is to destroy the scope or to be more precise to clear the graph dependencies after exiting like to clear koin scope after navigating away from the graph.
The text was updated successfully, but these errors were encountered:
This is a question for the official library, since we haven't really changed this functionality.
I believe (I did not test it) you can add a lifecycle observer to iceNavGraph like this:
navController.getBackStackEntry(NavGraphs.iceNavGraph.route).lifecycle.addObserver(
object:DefaultLifecycleObserver {
overridefunonDestroy(owner:LifecycleOwner) {
// should be called when iceNavGraph leaves the backstack I believe
}
}
)
Let me know if this works for you, I'll go ahead and close it.
what I want to achieve is to destroy the scope or to be more precise to clear the graph dependencies after exiting like to clear koin scope after navigating away from the graph.
The text was updated successfully, but these errors were encountered: