/SavedStateHandleStudy

Save and Restoring ViewModel using SavedStateHandle

Primary LanguageKotlin

SavedStateHandleStudy

Save and Restoring ViewModel data using SavedStateHandle

main branch : with SavedStateHandle

Using SavedStateHandle, the ViewModel data can be restored when returning to the application, even if memory is released during task switching.

main.mp4

bad branch : without SavedStateHandle

Without the SavedStateHandle, the ViewModel data will be lost when returning to the application after memory has been released during other task use.

bad.mp4