What libraries we can use for livedata and viewmod...
# android
s
What libraries we can use for livedata and viewmodel in KMM if we are having desktop android and web support. Any help will be appreciated
c
Livedata is Android only. No replacement. You should switch to coroutines and flows. Android ViewModel is already multiplatform. Also, FYI, https://blog.jetbrains.com/kotlin/2023/07/update-on-the-name-of-kotlin-multiplatform/
👍 2
s
Sure, Thanks
Does this mean If want a UI/Composable common for Android/IOS/Web/Desktop I should skip using platform specific state holders like live data which is Android, maybe there is something that exit for IOS. Skipping this I should prefer KMP friendly Flows, is it ??? @Chrimaeon
👌 1