-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
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
change state inside $transition onStart hook function got Error #2977
Comments
try this instead:
|
@hulkish thanks, but no use.. |
In ui-router legacy, people wondered why their transitions were failing silently. In 1.0, we added a default error handler which is printing the message that the original transition (to an auth state) was superseded by the new one (to
Enable
|
I followed the same steps but getting |
@ashwaniare I suspect your hook is being run in an infinite loop.
Make sure your hook doesn't redirect if it's already heading to |
Solution
|
error:
without $state.go() everything is fine
update
even i just simply called the $state.go inside onEnter, same error appear.
The text was updated successfully, but these errors were encountered: