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])
|
||||
}
|
||||
|
||||
class TreeNodeComponentFasterReconciliationWrapper extends React.PureComponent<Props, {}> {
|
||||
public render() {
|
||||
return <TreeNodeComponent {...this.props} />
|
||||
}
|
||||
}
|
||||
|
||||
export default withStyles(styles, { withTheme: true })(TreeNodeComponentFasterReconciliationWrapper)
|
||||
export default withStyles(styles, { withTheme: true })(React.memo(TreeNodeComponent))
|
||||
|
||||
Reference in New Issue
Block a user