Interface RedialMiddlewareHooks

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.

interface RedialMiddlewareHooks {
    afterSend<P = any>(action: RedialAction<P>): RedialAction<P>;
    beforeSend<P = any>(action: RedialAction<P>): RedialAction<P>;
}

Methods