Optional
afterCallback fired after the action is sent to the other process.
Payload of the forwarded action.
Action after forwarding.
Optional
beforeCallback fired before the action is sent to the other process.
Payload of the forwarded action.
Action prior to forwarding.
Hooks that run before and after the action is sent from one process to another. This is useful for doing things like ensuring the payload is serialized prior to sending the action, or making a change to the action after it's sent to the renderer process.