ViewModels and LiveData: Patterns + AntiPatterns
Jose Alcérreca
4.3K26

Hi, great article, i am trying to implement this architecture but i think am doing it wrong, I use the “viewmodels providers of” method to get my viewmodel from the fragment in my onActivitycreated method in the fragment class. i ran the application in debug mode and the variable holding the reference to my viewmodel is null. is this correct behavior?.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.