EXCEPTION: ApplicationRef.tick is called recursively

See original GitHub issue

When I use external scripts, I have to run manually tick method to check for app changes.

For example facebook login:

FB.login(response => {
  // do some changes
  this.isLoggedIn = true;

  // required tick
  this.applicationRef.tick();
});

All works ok while I wait for the response callback to be executed.

But I get EXCEPTION: ApplicationRef.tick is called recursively when I do some actions before the response callback is executed. For example when I focus an input element or whatever that angular will check for changes.

Version: 2.0.0-beta.9

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
Rambatinocommented, Jul 7, 2016

How unhelpful @pkozlowski-opensource. It’s not the most well-formed question, but there is no need to post a link as a response such as that.

5reactions
JoannaFalkowskacommented, Jul 25, 2017

@vicb @pkozlowski-opensource This thread is the first google result now for “ApplicationRef.tick is called recursively”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Error: ApplicationRef.tick is called recursively
I am successfully emitting Event explicitly by running another change detection process outside Zone JS. Though the change detection is running ...
Read more >
angular/angular - Gitter
I was trying to use ApplicationRef.tick() method, bug often I am running into issue: ApplicationRef.tick is called recursively. Any ideas?
Read more >
ApplicationRef - Angular
In development mode, tick() also performs a second change detection cycle to ensure that no further changes are detected. If additional changes are...
Read more >
Angular Error: ApplicationRef.tick is called recursively - iTecNote
tick is called recursively. I am successfully emitting Event explicitly by running another change detection process outside Zone JS.
Read more >
angular 8 no provider for changedetectorref
tick() doesn't work here as that causes 'ApplicationRef.tick is called recursively' exception; emitting an event just to trigger a change detection feels wrong...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found