-
Notifications
You must be signed in to change notification settings - Fork 18
Profiler shows change detection firing continuosly #848
Comments
Same Issue here. Funny thing: I tried to debug the issue with the following script in index.html:
Even this fixed the issue, but I don't know why. Maybe |
I've played around some more. In my case the problem also disappears, if I disable the "Redux Devtools"-Extension in Chrome.
But this message only causes a ChangeDetection when both StoreDevtools and Redux Devtools are enabled. Maybe StoreDevtools somehow thinks the messages from Angular Devtools are state changes done inside the Redux Devtools and forces Angular to do a change dectection, which is then causing another message from Angular Devtools so we end up in a infinite-loop. Update: Even this triggers a ChangeDetection (with StoreDevtools + Redux Devtools enabled and Angular Devtools disabled)
|
Yes, I would like to add that even I had redux dev tools enabled for my app and the reason my other apps were not experiencing this bug was that they did not use any state management. |
Issue confirmed here also. I should have report it on May 19th when we first tried the new dev tools and spotted the issue. Our app relies 100% on NgRx. |
@TheCoderFish @CheetahDev
In my app thats the case. And I think this proves, that Angular Devtools is not to blame here :) |
@BenniG82 yes i can confirm this , i added a log message in ngDoCheck and the dummy message does triggers a change detection in the app , and i removed the dev tools extension , (a new issue i am facing is the extension is getting corrupted and the extension library show the repair option). So is it the redux dev tools , cause when i repeated the same by removing the redux tools it no longer triggered a change detection cycle in my app. |
@mgechev, @brandonroberts: |
I also just discovered this issue. Very annoying. Is there any hope? |
I have also discovered this problem. After disabling all extensions except Angular DevTools*, which didn't help in my case, I was able to narrow down the problem to the Stripe integration we use in the project. * Tip: Instead of disabling all other extensions, just allow Angular DevTools access to incognito pages (setting can be changed in the extension details: |
**Angular DevTools version
(required)**:
**Angular version (required):~9.0.5

On one of my applications on starting the profiler, I get the change detection firing continuously. It also affects my application as I see my ngOnChanges being called continuously. on removing the extension my application behaves normally. the source of the initiator is " Window.addEventListener:message" and I don't have any line of code in my application that uses message.
https://file.io/Hu8YsP9BiGTb link to my saved profiler output for analysis
The text was updated successfully, but these errors were encountered: