Kotlin Coroutines recently introduced two Flow types, SharedFlow and StateFlow, and Android’s community started wondering about the possibilities and implications of substituting LiveData with one of those new types, or both. The two main reasons for that are: LiveData is closely bound to UI (no natural way to offload work to worker threads), andLiveData is closely bound to the Android platform.We
![Substituting Android's LiveData: StateFlow or SharedFlow?](https://cdn-ak-scissors.b.st-hatena.com/image/square/7ad19f30c184a2439ad99712392e0b456fd622bc/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A347%2F0%2AajaJ5pmoG2jbvsee.png)