How to use the @uirouter/core.RejectType.IGNORED function in @uirouter/core

To help you get started, we’ve selected a few @uirouter/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ui-router / redux / core / applyHooks.ts View on Github external
return function(err: Rejection) {
    let dispatcher;
    if (err.type === RejectType.SUPERSEDED && err.redirected === true) {
      dispatcher = dispatch(REDIRECTED_TRANSITION, store, trans);
    } else if ((err.type = RejectType.IGNORED)) {
      dispatcher = dispatch(IGNORED_TRANSITION, store, trans);
    } else {
      dispatcher = noop;
    }
    dispatcher();
  };
}