keepStatePlugin

inline fun <T : S, S : MVIState, I : MVIIntent, A : MVIAction> keepStatePlugin(keeper: StateKeeper, serializer: KSerializer<T>, key: String = serializer.descriptor.serialName, name: String? = "KeepStatePlugin"): StorePlugin<S, I, A>

Keep the store's state using provided StateKeeper. Store is restored in StorePlugin.onStart.

Be careful not to leak the state keeper instance if you are retaining your store (retainedStore