onUnsubscribe

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

Wraps the StorePlugin.onUnsubscribe 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.onUnsubscribe method inside this block manually!

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

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