Hey guys, what is your general approach on ViewMod...
# multiplatform
a
Hey guys, what is your general approach on ViewModels on your kmp projects with native ui? I saw this library where Jetbrains primarily uses in their sample kmp projects to have shared ViewModel but not sure how optimal this is cuz not sure how lifecycle on android side is handled: https://github.com/rickclephas/KMP-ObservableViewModel . Would definitely make things easier but does anyone have experience with it on bigger projects? or are you commonly use native viewmodel on android and similar native approach on ios side?
r
On Android KMP-ObservableViewModels behave/are identical to plain AndroidX ViewModels
👍 1
g
ViewModel from Android is already ported to Multiplatform, use https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-viewmodel.html