Our team recently adopted Kotlin Flow in our Android projects.
As far as I understand one of the drawbacks of flows in Android is that it is not LifeCycleAware. This is why we keep using LiveData to link view states and data to our views. An easy way to use both, is to let our Room Queries return Flows. This way as soon as our data is transformed, and we want to link it to views, we can use the asLiveData() function.
Now my question: Something with always casting to liveData feels not right to me. Is this the right way? does casting to LiveData have implications? And aren't we better using a duplicate Room query that returns a liveData version?
