I would like to have a ViewModel scoped to the Bot...
# koin
j
I would like to have a ViewModel scoped to the BottomSheet. Using
koinViewModel<VM_TYPE>()
seems to scope it to the current NavHost route. What’s the recommended way to achieve this?
a
did you test with koinInject and a "presenter"? it will be tied to your Composable as long as you are running it
j
What do you mean by “presenter”?
a
ViewModel is tied to a Host. If you want a more simple object to be passed to your Composable, you can inject a "presenter" like thing
🙏🏿 1
j
You’re right, it doesn’t need to be a viewmodel.
👍 1