我正在使用库@ welldone-software / why-did-you-render测试我的性能和组件渲染。图书馆文档中涵盖了常见的场景,但是我很少理解它们的含义或解决方法。有人可以帮我吗?例如:
Re-rendered although props and state objects are the same." "This usually means there was a call to this.forceUpdate() inside the component.
注意:我没有在组件内部使用this.forceUpdate()
ViewToolTip
{ViewToolTip: ƒ} "Re-rendered because of props changes:"
props.children
different React elements with the same displayName.