I need to share ViewModel instance between fragments. I know how to do it with ViewModelProviders (like here), but since 1.1.0 it was deprecated. How to implement it now? Thanks.
Asked
Active
Viewed 187 times
1
-
https://stackoverflow.com/questions/44272914/sharing-data-between-fragments-using-new-architecture-component-viewmodel – Nerdy Bunz Apr 04 '18 at 08:10
-
1Where do you see that this is deprecated? `ViewModelProviders.of` doesn't look to be deprecated in 1.1.1 – Chris Apr 04 '18 at 08:20
-
I'm so sorry my fault. Thanks Chris – Alexei Popov Apr 04 '18 at 14:28