in src/legacy/dispatch.ts [7:21]
export default function dispatch(
action: ActionFunction,
actionType: string,
args: IArguments,
actionContext: ActionContext
): void {
getGlobalContext().legacyInDispatch++;
mobxAction(
actionType ? actionType : '(anonymous action)',
dispatchWithMiddleware.bind(null, action, actionType, args, actionContext)
)();
getGlobalContext().legacyInDispatch--;
}