Feature Request P2
Status Update
Comments
ad...@google.com <ad...@google.com>
il...@google.com <il...@google.com>
il...@google.com <il...@google.com>
al...@gmail.com <al...@gmail.com> #2
Do you have a sample project that reproduces this issue that you can attach / link here?
Description
Version used: 1.1.0-alpha09
Theme used: Material
Devices/Android versions reproduced on: All
- Relevant code to trigger the issue: X
It would be great if Fragment.viewModels lazy initializer could take a key as parameter. Unlocking the possibility to have multiple instances of viewModel class for the referenced ViewModelStoreOwner. As it's possible using ViewModelProvider get method directly.
Or at least have a documented example using a KeyedFactory.