export function stitch()

in src/legacy/stitch/stitch.ts [14:28]


export function stitch(
    next: LegacyDispatchFunction,
    action: ActionFunction,
    actionType: string,
    args: IArguments,
    actionContext: ActionContext
) {
    let returnValue = next(action, actionType, args, actionContext);

    if (actionType && handlers[actionType]) {
        handlers[actionType].forEach(handler => handler.apply(null, args));
    }

    return returnValue;
}