moko-mvvm icon indicating copy to clipboard operation
moko-mvvm copied to clipboard

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

Open OrhanTozan opened this issue 4 years ago • 1 comments

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

OrhanTozan avatar Mar 14 '20 18:03 OrhanTozan

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

Alex009 avatar Mar 16 '20 04:03 Alex009