Hello, I thought Android Room supported Kotlin Sta...
# android
t
Hello, I thought Android Room supported Kotlin StateFlow as a return type within a @Dao can anyone confirm (or deny) this please? and identify what gradle version contians the chnage?
s
You can return a
Flow
. It's not necessarily a
StateFlow
.
And you'll want the androidx.room:room-ktx dependency, I believe.
t
Thanks... I felt sure they had announce that StateFlow was no walso supported 🤦‍♂️
o
DataBinding has StateFlow support recently, maybe you are confusing it with that/.