I want to declare viewmodels dependences in KMM code,
but viewmodels is not available can I use factory??? 🏭
a
arnaud.giuliani
09/11/2023, 10:10 AM
use factory and KMM ViewModel project 👍
🙌 1
🙂 1
p
pers
09/11/2023, 11:20 AM
@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
arnaud.giuliani
09/11/2023, 11:47 AM
viewModel is an Android mechanism to attach the ViewModel to the Android lifecycle
🙌 1
arnaud.giuliani
09/11/2023, 11:48 AM
it has its own memory cache
🙌 1
arnaud.giuliani
09/11/2023, 11:48 AM
but for Koin it's a factory
🙌 1
c
Colton Idle
09/21/2023, 4:37 AM
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.