Fixed
Status Update
Comments
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
br...@gmail.com <br...@gmail.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
Now that we have CreationExtras for creating ViewModels via a ViewModelProvider, it would be nice if we could simplify the use of it even further particular for simple cases.
The creation extra has all of the information needed to make a ViewModel and by providing arguments to through extras you can instantiate ViewModels with specified values.
We can create a simple factory that associates a ViewModel class with a lambda and leverages CreationExtras to easily instantiate the class appropriately.