Skip to content

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

Closed
willleahy wants to merge 1 commit into
plotly:mainfrom
willleahy:patch-1
Closed

Avoids purging el on unmount if el is not found#302
willleahy wants to merge 1 commit into
plotly:mainfrom
willleahy:patch-1

Conversation

@willleahy

@willleahy willleahy commented Nov 23, 2022

Copy link
Copy Markdown

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.

Fixes an issue where, when changing a route in an SPA, unmount will be called after the page changes and this.el can no longer be found.
@camdecoster

Copy link
Copy Markdown
Contributor

Thanks for your PR! I apologize that this got dusty over the years. The underlying issue has been fixed in v4 that was just released, so I'm going to close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants