对性能重新呈现问题做出反应

时间:2019-02-27 13:58:55

标签: reactjs performance rendering material-ui material-ui-next

我正在使用库@ 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.

0 个答案:

没有答案
相关问题