icerockdev / moko-mvvm

Model-View-ViewModel architecture components for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
992 stars 94 forks source link

Add liveData {...} coroutine builder (based on AndroidX API) #38

Open OrhanTozan opened 4 years ago

OrhanTozan commented 4 years ago

Right now the liveData { .. } coroutine builder API is missing: https://developer.android.com/topic/libraries/architecture/coroutines#livedata

Alex009 commented 4 years ago

hi! yes, now we dont provide builtin coroutine builder liveData , but it can be simple implemented without changes of moko-mvvm , if you not use emitSource - https://gist.github.com/Alex009/749c63fce06ce1c4b6f8c3d2856f84ac but if you use emitSource it's blocked by moko-mvvm side - removeSource for MediatorLiveData not exposed to common api now