How to use the @uirouter/core.RejectType.SUPERSEDED 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 Teradata / kylo / ui / ui-app / src / main / resources / static / js / main / index-ng2.component.ts View on Github external
onTransitionError(transition: Transition) {
        // Clear state loading bar. Ignore parent states (type is SUPERSEDED) as child states will load next.
        if (transition.error().type !== RejectType.SUPERSEDED) {
            clearTimeout(this.stateLoaderTimeout);
            this.stateLoaderTimeout = null;
            this.loadingService.resolveAll(STATE_LOADER);
        }
    }
}
github Teradata / kylo / ui / ui-app / src / main / resources / static / js / main / IndexController.ts View on Github external
onTransitionError(transition: Transition) {
        // Clear state loading bar. Ignore parent states (type is SUPERSEDED) as child states will load next.
        if (transition.error().type !== RejectType.SUPERSEDED) {
            clearTimeout(this.stateLoaderTimeout);
            this.stateLoaderTimeout = null;
            this.loadingService.resolveAll(STATE_LOADER);
        }
    }
}
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();
  };
}