简体   繁体   English

Angular 开发工具将源显示为 Window.addEventListener:message in Profiler

[英]Angular Dev Tools shows source as Window.addEventListener:message in Profiler

I tried Angular Dev Tools Extension on a fairly complex Angular application.我在一个相当复杂的 Angular 应用程序上尝试了 Angular 开发工具扩展 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.在分析器选项卡上,当我单击“开始录制”时,甚至在我将 cursor 从开始按钮移开之前,我看到有一个连续的 stream 变化检测周期。 The Source is reported as "Window.addEventListener:message".源报告为“Window.addEventListener:message”。 Please see the screenshot below请看下面的截图在此处输入图像描述

  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? CasePanelComponent 甚至有 ngOnChanges() 方法,那么“更改”方法在这里指的是什么?

Redux DevTools interferes with Angular Dev tools. Redux 开发工具会干扰 Angular 开发工具。 And the only option available currently is to disable Redux Dev tools.目前唯一可用的选项是禁用 Redux 开发工具。

Please see https://github.com/rangle/angular-devtools/issues/825 for more details.有关详细信息,请参阅https://github.com/rangle/angular-devtools/issues/825

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM