I want to declare viewmodels dependences in KMM co...
# koin
p
I want to declare viewmodels dependences in KMM code, but viewmodels is not available can I use factory??? 🏭
a
use factory and KMM ViewModel project 👍
🙌 1
🙂 1
p
@arnaud.giuliani I am one of your fan ,t hank you very much ok, what will I lose from using factories over viewmodels
❤️ 1
a
viewModel is an Android mechanism to attach the ViewModel to the Android lifecycle
🙌 1
it has its own memory cache
🙌 1
but for Koin it's a factory
🙌 1
c
FWIW, I'm starting to use kmp and koin. im using precompose library. on github it has some declared ways of working with koin too. might be worth looking at.