https://kotlinlang.org logo
#moko
Title
# moko
v

Vadzim Filipovich

08/09/2021, 8:01 PM
Hey guys, any news or plans about Jetpack Compose and MokoMVVM? Could I just provide viewmodel instance to composable (with Kodein for example) and just use it without databindings? Does update of LiveData from your package trigger recomposition?
a

alex009

08/10/2021, 9:49 AM
hi! moko-mvvm for android side backed by android architecture viewmodels, so you can use moko-mvvm components same way as original android viewmodels and livedata
you can choose what components of mvvm you need - viewmodels, livedata, viewbinding, databinding and others - see readme
so you can use https://developer.android.com/jetpack/compose/libraries#viewmodel guide for integration with compose
v

Vadzim Filipovich

08/10/2021, 12:07 PM
Thanks, really good job!
2 Views