Is there a way to link a component (eg:Presenter i...
# koin
f
Is there a way to link a component (eg:Presenter injected multiple times) to a viewmodel scope ? Edit: in a full compose app
👀 1
a
You have the activityRetainedScope() based on a ViewModel - https://insert-koin.io/docs/reference/koin-android/scope/#setup-the-scope
else perhaps need more work around for now 🤔
f
Yeah finally I'm listening to the lifecycle of the NavBackStackEntry to know when the Viewmodel is created or cleared
It’s a bit tricky since I’m working on a Compose single activity app
a
Yeah, Koin need to help more about such navigation & activity/viewmodel centric cases