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
sindrenm
09/22/2021, 12:09 PM
You can return a
Flow
. It's not necessarily a
StateFlow
.
sindrenm
09/22/2021, 12:09 PM
And you'll want the androidx.room:room-ktx dependency, I believe.
t
Tower Guidev2
09/22/2021, 1:17 PM
Thanks...
I felt sure they had announce that StateFlow was no walso supported 🤦♂️
o
Orhan Tozan
09/22/2021, 2:22 PM
DataBinding has StateFlow support recently, maybe you are confusing it with that/.