We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I return just TargetState it works. But if the I return the TargetState from within a promise it does not. My hook looks like this
function hook(transition) { var target = transition.router.stateService.target, targetState = transition.targetState(), targetStateInternal = targetState.state(), targetStateData = targetStateInternal && targetStateInternal.data, allowAnonymous = targetStateData && targetStateData.allowAnonymous; // Returning right here outside of promise will work. Ie: // return target(loginStateName, { redirectTo: targetState.name(), redirectParams: targetState.params() }); return !allowAnonymous ? signInManager.isSignedIn().then(noop, error) : null; function error() { return target(loginStateName, { redirectTo: targetState.name(), redirectParams: targetState.params() }); } }
The text was updated successfully, but these errors were encountered:
Nevermind. I did something to address this bug #2676 and it caused this bug.
Sorry, something went wrong.
No branches or pull requests
If I return just TargetState it works. But if the I return the TargetState from within a promise it does not. My hook looks like this
The text was updated successfully, but these errors were encountered: