Fixed
Status Update
Comments
il...@google.com <il...@google.com>
sa...@google.com <sa...@google.com>
ap...@google.com <ap...@google.com> #2
Yigit, do you have time to fix it?
reemission of the same liveData is racy
reemission of the same liveData is racy
il...@google.com <il...@google.com> #3
yea i'll take it.
na...@google.com <na...@google.com> #4
Thanks for the detailed analysis. This may not be an issue anymore since we've started using Main.immediate there but I' not sure; I'll try to create a test case.
Description
Component used: lifecycle-livedata-ktx
Version used: 2.3.0-alpha03
StateFlow
SharedFlow
LiveData
created by theasLiveData
extension methods onFlow
in FlowLiveData.kt. It would be nice if the initial value was available asvalue
on the createdLiveData
to help reduce unnecessary UI updates that happen when the values arrive on theFlow
after the lifecycle method responsible for creating the initial view has already finished.Here is a failing test for
StateFlow
that should work, IMHO: