Skip to content

Add support for restoring state from SavedStateHandle in Vector state factory #17

@haroldadmin

Description

@haroldadmin

Is your feature request related to a problem? Please describe.
VectorStateFactory tries two approaches to create an initial state: Using the VectorViewModelFactory and using the constructor.

For applications using the SavedStateVectorViewModel, it becomes necessary to implement VectorViewModelFactory's initialState() method to restore this state from the SavedStateHandle, even though the most basic implementation here simply retrieves the state from the handle and returns it.

Describe the solution you'd like
An automated restoration of state from the SavedStateHandle in the case where the ViewModel does not implement the factory interface's initialState() method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions