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