Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.mapChange();
}
}, {
key: "shouldComponentUpdate",
value: function shouldComponentUpdate(nextProps, nextState) {
var clusterPoints = this.state.clusterPoints;
var nextClusterPoints = nextState.clusterPoints;
return !_.isEqual(this.props, nextProps) || !_.isEqual(clusterPoints, nextClusterPoints);
}
}]);
return OverridedCluster;
}(Cluster);
OverridedCluster.displayName = "Cluster";
export default withMap(OverridedCluster);
}
shouldComponentUpdate(nextProps, nextState) {
const { clusterPoints } = this.state;
const { clusterPoints: nextClusterPoints } = nextState;
return (
!_.isEqual(this.props, nextProps) ||
!_.isEqual(clusterPoints, nextClusterPoints)
);
}
}
OverridedCluster.displayName = "Cluster";
export default withMap(OverridedCluster);