plotly / react-plotly.js

A plotly.js React component from Plotly 📈
MIT License
1.01k stars 135 forks source link

Avoids purging el on unmount if el is not found #302

Open willleahy opened 1 year ago

willleahy commented 1 year ago

Fixes an issue where unmount will be called after the page changes and this.el can no longer be found. In my case, this happened using react-plotly in a creat-react-app app + react-router app when the route changed away from a page using plotly.