angular-devtools icon indicating copy to clipboard operation
angular-devtools copied to clipboard

Question on Source events in Profiler

Open phalgunv opened this issue 3 years ago • 4 comments

On the profiler tab, the moment I click "Start recording", even before I could move the cursor away from start button, I see there is a continuous stream of change detection cycles. The Source is reported as "Window.addEventListener:message". Please see the screenshot below image

  1. How can I find what could be causing these events and hence the numerous change detection cycles?
  2. As seen in the screenshot there is a method called "changes" listed on the right under the component details. The CasePanelComponent does even have ngOnChanges() method, so what is being referred to here by "changes" method?

Note: I had raised the same question on StackOverflow but I haven't got any response yet, so raised it here as an issue.

phalgunv avatar Nov 25 '21 16:11 phalgunv

Hello, it looks like you have Redux Devtools installed.

It is a known issue that Redux Devtools interferes with Angular Devtools.

Check the issue here: Interferences with Redux DevTools extension

eneajaho avatar Nov 26 '21 13:11 eneajaho

Thanks @eneajaho . Can you help with the second question about "changes" method?

phalgunv avatar Nov 26 '21 19:11 phalgunv

That is the ngOnChanges method on the component. @phalgunv

eneajaho avatar Nov 26 '21 20:11 eneajaho

@eneajaho I see "changes" method reported for components which do not have "ngOnChanges" method implemented.

phalgunv avatar Dec 01 '21 22:12 phalgunv