Skip to content
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

Infinite digest when loading url without anything after the # #1616

Closed
VictorioBerra opened this issue Dec 8, 2014 · 7 comments
Closed

Infinite digest when loading url without anything after the # #1616

VictorioBerra opened this issue Dec 8, 2014 · 7 comments

Comments

@VictorioBerra
Copy link

Angular version: 1.3.5
ui-router: 0.2.13

When I hit my URL with: index.html# or just index.html

the page and URL will flicker a few times before finally going to my location defined in $urlRouterProvider.otherwise('/otherwisetest');

I will get this about 6 times:
Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []

@dtritus
Copy link

dtritus commented Dec 9, 2014

Looks like this issue angular/angular.js#10228. Try to update angular to 1.3.6, this should help.

@VictorioBerra
Copy link
Author

1.3.6 did not fix the problem.

@isamulenko
Copy link

Neither did 1.3.7-build.3695 snapshot. Faced this issue during migration from 1.2.22 to 1.3.6. Any advice on how to fix this?

@OverZealous
Copy link

I'm getting this on any custom defined rule right now. Even a simple rule like this causes the $digest issues:

if($location.url() === '/') {
    return '/dashboard/';
}

I don't know when this started. It's causing a real issue for me to debug a more complicated rule.

(Edit: Note that if I comment out the return statement on the rule, the error goes away.)

@javifr
Copy link

javifr commented Dec 30, 2014

Same thing is happening to me.

  • Angular 1.3.6
  • Angular ui router 0.2.13

@OverZealous
Copy link

OK, so it turns out for me this issue was caused by angular-permission module, which will cancel a state change on start if redirected to a page with permissions associated to it.

This is the same issue as #600, and if you are experiencing the $digest issues, I suggest you look into their workaround (which fixed the issue for me completely).

@eddiemonge
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants