Fix tree-rendering performance

This commit is contained in:
Thomas Nordquist
2019-07-11 16:14:46 +02:00
parent 8e49d19fbe
commit 1a1596ad3d

View File

@@ -135,4 +135,10 @@ function TreeNodeComponent(props: Props) {
}, [treeNode.lastUpdate, treeNode, name, isCollapsed, selected, theme])
}
export default withStyles(styles, { withTheme: true })(TreeNodeComponent)
class TreeNodeComponentFasterReconciliationWrapper extends React.PureComponent<Props, {}> {
public render() {
return <TreeNodeComponent {...this.props} />
}
}
export default withStyles(styles, { withTheme: true })(TreeNodeComponentFasterReconciliationWrapper)