onSubscribe

fun onSubscribe(block: DecorateArg<S, I, A, Int>)

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

The child plugin will not know an event has occurred unless you call the StorePlugin.onSubscribe method inside this block manually!

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

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