Found the issue, I was using LiveData-directly, in...
# android
h
Found the issue, I was using LiveData-directly, instead of
observeAsState
f
So you are using compose? Why are you not using the
Flow
directly with
collectAsState
but instead transform it to
LiveData
before exposing it?
j
There is also a thing as StateFlow now, which might suit your needs
f
StateFlow
which also has a
collectAsState
extension for
compose
😄 1
j
I just woke up 😅
h
Ah, very good point. I'll see to refactor it, thanks!