Fixed
Status Update
Comments
al...@google.com <al...@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
jb...@google.com <jb...@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
ViewModelProviderKt
exists in bothlifecycle-viewmodel-ktx:2.3.1
, which gets pulled in transitively byappcompat
, andlifecycle-viewmodel
at head. If I updateappcompat
tolifecycle-viewmodel
it's going to cause a classpath conflict for a lot of external clients.Dependency constraints should be used here, but Gradle has several bugs in dependency constraint resolution that prevent us from using it (seehttps://github.com/gradle/gradle/issues/19882 ).
Please use a different
JvmName
for the class inlifecycle-viewmodel
so that we can avoid the conflict without needing to blocklifecycle-viewmodel
orappcompat
's release on Gradle fixing their bugs.