icerockdev / moko-mvvm

Model-View-ViewModel architecture components for mobile (android & ios) Kotlin Multiplatform development

Home Page:https://moko.icerock.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for state restoration after process death

Zhuinden opened this issue · comments

It seems that ViewModel has no support for SavedStateHandle, nor is onSaveInstanceState/savedInstanceState handled in any way in any code within this repository.

What is the recommended approach that makes it possible to implement correct state persistence across process death as per OS requirements for Android?

Commenting to bring attention back to this enhancement.
This would be a great addition to the library.