简体   繁体   English

浏览器控制台元素闪烁,就像它们被渲染一样,尽管它们不是,原因不明

[英]Browser console elements are blinking like they are rendered although they are not, from unknow reason

I have some pages which use a common module on application.我有一些页面在应用程序中使用通用模块。 From unknow reason I keep seeing the tr's elements on the browser console blinking in a purple like they are rendered again.由于未知的原因,我一直在浏览器控制台上看到 tr 的元素以紫色闪烁,就像它们再次渲染一样。

I don't see reason for that behavior and it's unwanted.我看不出这种行为的原因,这是不受欢迎的。

How can I debug or check in another way what's causing it如何以另一种方式调试或检查导致它的原因

See the attached image please请看附图

EDIT: I've tried to add onChange life cycle to my component to see if there are changes that I'm not aware of.编辑:我尝试将 onChange 生命周期添加到我的组件中,以查看是否有我不知道的更改。 But it doesn't triggered at all (when this scenario happens)但它根本没有触发(当这种情况发生时)

在此处输入图像描述

The reason is that something in your code is constantly triggering the angular change detector.原因是代码中的某些内容不断触发 angular 变化检测器。 An example of such action can be wrong usage of some component lifecycle hook like ngAfterViewChecked or ngDoCheck .此类操作的一个示例可能是错误使用某些组件生命周期钩子,例如ngAfterViewCheckedngDoCheck

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

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