Fixed
Status Update
Comments
se...@google.com <se...@google.com>
do...@gmail.com <do...@gmail.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>
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #3
yea i'll take it.
jb...@google.com <jb...@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
The backing map is only populated when MutableLiveData.setValue() is called. SavedStateHandle.get(key) returns null when called right after calling SavedStateHandle.getLiveData(key, defaultValue)
The issue can be reproduced using the code here