Best way to retrieve the activity’s ViewModel for second time
This is how the guides recommend retrieving the ViewModel of an activity for the first time, which normally happens inside the onCreate
:
This is how the guides recommend retrieving the ViewModel of an activity for the first time, which normally happens inside the onCreate
: