savedStatePlugin

inline fun <S : MVIState, I : MVIIntent, A : MVIAction> savedStatePlugin(name: String = DefaultSavedStatePluginName, context: CoroutineContext = EmptyCoroutineContext, crossinline get: suspend S.() -> S?, crossinline set: suspend (S) -> Unit): StorePlugin<S, I, A>

Deprecated

If you want to save state, use the new `savedstate` module dependency

A plugin that restores the pro.respawn.flowmvi.api.StateProvider.state using get in StorePlugin.onStart and saves using set asynchronously in StorePlugin.onState. There are platform overloads for this function.