简体   繁体   English

React DevTools 将组件显示为“正在加载...”

[英]React DevTools show components as "Loading..."

I need to debug some props that are being used in my React application.我需要调试一些在我的 React 应用程序中使用的道具。 However, if I try to inspect certain components, they appear as "Loading..." instead of the normal props list:但是,如果我尝试检查某些组件,它们会显示为“正在加载...”而不是正常的道具列表: 在此处输入图片说明

However, I know that these components have already rendered as I can see them in the DOM.但是,我知道这些组件已经呈现,就像我在 DOM 中看到的那样。 Also, it stays like this perpetually, so it obviously isn't actually loading anything.此外,它永远保持这样,所以它显然实际上并没有加载任何东西。

I'm using React DevTools 4.2.1-3816ae7c3 and React 16.12.0我正在使用 React DevTools 4.2.1-3816ae7c3和 React 16.12.0

I was having the same issue with Ubuntu and after reinstalling the extension.我在 Ubuntu 和重新安装扩展程序后遇到了同样的问题。 Close the chrome app and reopen it, then it solved it for me.关闭chrome应用程序并重新打开它,然后它为我解决了它。

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

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