Hello everyone looking for opinions with regards t...
# multiplatform
c
Hello everyone looking for opinions with regards to DI and ViewModels in Compose Multiplatforms. I see that now the
viewModel()
function is available in Compose MP allowing us to get a ViewModel(which is now also supported in Kotlin MP). But I am curious if someone has found a good approach to get a ViewModel(and it's dependencies) in Compose MP. I have a project that I want to migrate to Compose MP and the only thing left is being able to get the ViewModels in Compose and inject their dependencies.
THere is this thread https://kotlinlang.slack.com/archives/C3PQML5NU/p1717710671362999 with regards to using Koin directly which I was trying to avoid. 🤔 But for now it seems like it is the right approach.