Fixed
Status Update
Comments
mg...@google.com <mg...@google.com>
mg...@google.com <mg...@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
pr...@google.com <pr...@google.com> #3
yea i'll take it.
Description
Component used: Lifecycle
Version used: 2.5.0-rc02
Right now methods to create a
ViewModel
are marked asMainThread
. It would be nice if that limitation was removed andViewModelProvider
(and hence the creation of ViewModels) could be made thread safe.This would be particularly helpful for cases such as with the Lifecycle ViewModel Compose API of
viewModel()
, which would ensure future compatibility for multi-threaded composition.