Skip to content
loading...

re: Don't think Viewmodel will replace SaveInstanceState VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Viewmodel has save instance state already. developer.android.com/reference/an...
 

Yes true, but this save/load state only trigger when activty/fragmenst still alive.

 

It's bound to the fragment so the view model gets new instance if not instantiated already when fragment is recreated

code of conduct - report abuse