Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount(): void {
if (this.context) {
const markerClusterer = new Clusterer(
this.context,
[],
this.props.options
)
this.registeredEvents = applyUpdatersToPropsAndRegisterEvents({
updaterMap,
eventMap,
prevProps: {},
nextProps: this.props,
instance: markerClusterer
})
this.setState(
function setClusterer(): ClustererState {
return {