🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

Unbind React Plotly events

I’m looking for a working method to unbind events (particularly ‘plotly_deselect’) using React Plotly.

I’ve tried the following methods :

  useEffect(() => {
    document.removeEventListener('plotly_deselect', (_) => null)
  }, [])

and

<Plot ... onDeselect={() => null}/>

But the event is still trigered.