childStorePlugin
fun <S : MVIState, I : MVIIntent, A : MVIAction> childStorePlugin(children: Iterable<Store<*, *, *>>, force: Boolean? = null, blocking: Boolean = false, name: String? = null): StorePlugin<S, I, A>
Create a plugin that ties the lifecycle of children to the lifecycle of the parent Store. The children will be started and stopped together with the parent store, synchronously if blocking is true.
Return
A store plugin that can be installed in the parent store
Parameters
children
The stores to launch
force
Whether to force start the stores even if they are already active. If null, uses the debuggable flag from the store configuration to prevent crashes in production.
blocking
Whether to wait for the child stores to start before continuing
name
Optional name for the plugin