Join Slack
What's the basic difference between Flow and Live data? Can anyone explain this with an example
# getting-started
n
Nikhil
11/23/2020, 3:58 AM
What's the basic difference between Flow and Live data? Can anyone explain this with an example
j
John O'Reilly
11/23/2020, 7:37 AM
this was a nice recent article about that
https://proandroiddev.com/should-we-choose-kotlins-stateflow-or-sharedflow-to-substitute-for-android-s-livedata-2d69f2bd6fa5
s
Saul Wiggin
11/23/2020, 12:05 PM
The difference is that Flow is less closely coupled with the UI as LiveData. This means that it is possible to interact with the data layer more easily and deploy additional workers. It utilizes all the structured concurrency in coroutines
n
Nikhil
11/23/2020, 1:13 PM
So you're saying Flow is better than LiveData?
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by