Replace PureComponent performance wrapper
This commit is contained in:
@@ -137,10 +137,4 @@ function TreeNodeComponent(props: Props) {
|
|||||||
}, [treeNode.lastUpdate, treeNode, name, isCollapsed, selected, theme, mouseOver, settings])
|
}, [treeNode.lastUpdate, treeNode, name, isCollapsed, selected, theme, mouseOver, settings])
|
||||||
}
|
}
|
||||||
|
|
||||||
class TreeNodeComponentFasterReconciliationWrapper extends React.PureComponent<Props, {}> {
|
export default withStyles(styles, { withTheme: true })(React.memo(TreeNodeComponent))
|
||||||
public render() {
|
|
||||||
return <TreeNodeComponent {...this.props} />
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default withStyles(styles, { withTheme: true })(TreeNodeComponentFasterReconciliationWrapper)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user