LukasLechnerDev / Kotlin-Coroutines-and-Flow-UseCases-on-Android

🎓 Learning Kotlin Coroutines and Flows for Android by example. 🚀 Sample implementations for real-world Android use cases. 🛠 Unit tests included!
Apache License 2.0
2.63k stars 433 forks source link

Propagating state #5

Closed IkemNwodo closed 2 years ago

IkemNwodo commented 4 years ago

Please how best can propagate state(like status) from the repository down to viewmodel using coroutine(no livedata usage in repository)?. I read a medium article about livedata usage in any other layers aside presentation being inappropriate

LukasLechnerDev commented 4 years ago

This sounds like a use case for using Flow. I will try to add some use cases that uses Flow in the future.