doing some google searches it looks like this is t...
# android
f
doing some google searches it looks like this is the approach to go with, LiveData looks to be the old way of doing things and will be deprecated at some point in the future
🧵 1
y
Who said Livedata will be deprecated?
n
LiveData are not deprecated today and won't be in the foreseeable future. If you saw this article 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