8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 890d15c commit dd165a3Copy full SHA for dd165a3
src/factory.js
@@ -131,6 +131,9 @@ export default function plotComponentFactory(Plotly) {
131
}
132
133
componentWillUnmount() {
134
+ if (this.props.onPurge) {
135
+ this.props.onPurge(this.el);
136
+ }
137
if (this.resizeHandler && isBrowser) {
138
window.removeEventListener('resize', this.handleResize);
139
this.resizeHandler = null;
@@ -269,6 +272,7 @@ export default function plotComponentFactory(Plotly) {
269
272
frames: PropTypes.arrayOf(PropTypes.object),
270
273
revision: PropTypes.number,
271
274
onInitialized: PropTypes.func,
275
+ onPurge: PropTypes.func,
276
onError: PropTypes.func,
277
onUpdate: PropTypes.func,
278
debug: PropTypes.bool,
0 commit comments