Fixed
Status Update
Comments
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #2
I have the same issue.
sa...@google.com <sa...@google.com>
g....@xe.gr <g....@xe.gr> #3
Here too!
il...@google.com <il...@google.com> #4
+1
pr...@google.com <pr...@google.com> #5
the same for Java buildSrc
Description
Component used: livecycle-livedata-ktx Version used: 2.5.1
distinctUntilChanged()
which does not set the initial value of the returned LiveData even if the source one was initialized. This caused unnecessary recompositions if observed withobserveAsState()
.However, I also noticed that the other two
Transformations
methods,map
andswitchMap
, suffer from the same symptom which means that they too will likely cause the same unnecessary recompositions.