https://kotlinlang.org logo
#coroutines
Title
# coroutines
c

Ciprian Grigor

02/18/2021, 8:41 PM
Are there any issues in using Flow (MutableStateFlow) with databinding?
g

gildor

02/19/2021, 3:12 AM
Only Android Gradle Plugin 7.0 (now in alpha) added native support for StateFlow (but not Flow!)
if you are not on bleeding edge of AGP, just use adapter to convert Flow to LiveData (but careful, it asyncronous by default, so your layout will appear without default value and will be updated when LiveData receive value)