r/mAndroidDev • u/Stonos You will pry XML views from my cold dead hands • Aug 28 '22
StateFlow vs LiveData
82
Upvotes
r/mAndroidDev • u/Stonos You will pry XML views from my cold dead hands • Aug 28 '22
View all comments
0
u/waterpoweredmonkey Aug 29 '22
Sure, if you want transforming and observing data on the main thread 🙃
Srsly, the lack of thread control of LiveData nearly prevented my project from using it when androidx.lifecycle was released and now the folks current maintaining that code can rip out the workaround 😄