Hello Guys, I have been using data binding with Vi...
# android
a
Hello Guys, I have been using data binding with Viewmodel + live data. I have seen examples to update the Ui with Livedata<UiState<ModelClass>> using databinding is via writting BindingAdapters but i have also read that binding adapter are not good as they hide the logic behind itself. I am interested to know what are the other option to do the same?
f
Data binding is a hell, use view binding We're having additional 5minutes of build time due to this issue on a big project, also we're due to remove it and migrate to view binding and state flow instead of live data
a
I am not sure why to move to stateflow instead of LiveData , knowing it is not lifecycle aware. I know we can make stateflow lifecycle aware but we have to write extra code for it. What is the big difference that stateflow make ?
f
Thread safe, you can use channels for single event instead of SingleLiveEvent and it plays well with coroutines
1
👀 1
t
Why would you wanna know the logic behind binding adapter?