ViewModel in Fragment Under the Hood
From ViewModelStore to Retain Fragments
Fragment
destroy()
ViewModelStore
saving
Fragment
onCreate()
ViewModelStore
FragmentManagerViewModel
Child Fragments
Retain Fragments
"
Architectural connections for state preservation