onAction

fun onAction(block: DecorateValue<S, I, A, A>)

Wraps the StorePlugin.onAction method of the child plugin passed in the block parameter.

The child StorePlugin.onAction method will not be invoked unless you manually call StorePlugin.onAction inside this block.

For pre-context parameters version, to correctly call the child method, use child.run { onAction(action) }

The return value of block will mean what action will be actually send to subscribers, i.e. the end result. Use null to not send anything. Use the return value of child.onAction to delegate the result.

See the DecoratorBuilder documentation for details on how this function behaves.