Hello everyone! I'm wondering what is the best pra...
# koin
d
Hello everyone! I'm wondering what is the best practice when it comes to
koinInject()
ion of my viewModels - in screen constructor or in screen class body?
m
Either way the ViewModel is only created once But for the sake of testability and readability I prefer injecting ViewModel as a parameter
👍 1
1
a
clearly better to consider parameter values in Compose 👍