so I’m not really that bothered if it is to be off...
# android
f
so I’m not really that bothered if it is to be officially deprecated, more just whether people would recommend only using Flows and StateFlow
🧵 1
j
I would currently recommend using flows over LiveData. With the available collectAsStateWithLifecycle options available to flows from Android, it doesn't make a bunch of sense to keep LiveData around, especially if there is ever a plan to move to Kotlin multiplatform
n
@Josh Eldridge There's still some issues with collecting a Flow from the View, you can check it there: https://medium.com/androiddevelopers/migrating-from-livedata-to-kotlins-flow-379292f419fb, there's some strong overlooks from the author (with hot flows) witch make the repeatOnLifecycle still not desirable. You can read this https://medium.com/androiddevelopers/a-safer-way-to-collect-flows-from-android-uis-23080b1f8bda and / or check my demo using both LiveData and Flow between View and ViewModel so you can check the issues yourself https://github.com/NinoDLC/Kotlin_Flow_To_The_View