storeDelegatePlugin
Creates a new plugin that will:
If start is true, launch the provided delegate in the installed store's pro.respawn.flowmvi.api.PipelineContext. See childStorePlugin for more details.
Update the delegate's StoreDelegate.stateProjection with the values from the delegated store according to the DelegationMode provided to the delegate, and handle actions using the provided consume function.
Warning: The delegate's StoreDelegate.stateProjection is not guaranteed to be up-to-date. It is a projection based on DelegationMode.
Return
A store plugin that can be installed in the principal store
Parameters
The store delegate to use
Optional name for the plugin, by default allows only one plugin per delegate.
Whether to automatically start the delegate store when the plugin is installed
Whether to wait for the delegate store to start before continuing (applies if start is true)
Optional function to handle actions from the delegate store