You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to support onSaveInstanceState and saved state persistence inside ViewModel classes, Jetpack provides the viewmodel-savedstate module: with the AbstractSavedStateViewModelFactory, that provides the correct SavedStateHandle for the SavedStateRegistryOwner, with the correct initial arguments (intent.extras, fragment.arguments, or navBackStackEntry.arguments).
There seems to be no example for this basic scenario in this library, and that is a problem.
The viewmodel-savedstate module was officially released as a stable release in January 2020, and should be supported.
The text was updated successfully, but these errors were encountered:
In order to support
onSaveInstanceState
and saved state persistence inside ViewModel classes, Jetpack provides theviewmodel-savedstate
module: with theAbstractSavedStateViewModelFactory
, that provides the correctSavedStateHandle
for theSavedStateRegistryOwner
, with the correct initial arguments (intent.extras
,fragment.arguments
, ornavBackStackEntry.arguments
).There seems to be no example for this basic scenario in this library, and that is a problem.
The
viewmodel-savedstate
module was officially released as a stable release in January 2020, and should be supported.The text was updated successfully, but these errors were encountered: