Open rogergcc opened 9 months ago
want to observa a change in your database offline ? use Livedata in Room. if not. Not use it
But Livedata came first for Android then appear kotlin flows . Livedata requeired android dependencias
but room is in data layer and data layer should not have android dependencies https://stackoverflow.com/questions/61669757/do-i-have-to-use-livedata-to-read-query-from-room-database-in-android-kotlin
Approach Kotlin Flows in replace to Livedata
Hot Flows vs Cold Flows StateFlows ShareFlows