How to inject SavedStateHolder into ViewModel #274
Replies: 1 comment
-
You can pass SavedStateHolder as parameters, there's a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, when I'm using the ViewModel with Koin, I also want the SavedStateHolder which I don't understand exactly how to create instance for it
How can I achieve with koinViewModel the behaviour viewModel method? Or what should I add in my modules in order to get() inside the AppViewModel?
Also, in docs it's stated "when using PreCompose ViewModel with Koin, you do have to manage ViewModel's lifecycle", then what can I do to achieve the lifecycle managing with Koin vm that is obtained from the classical creation?
Beta Was this translation helpful? Give feedback.
All reactions