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 074ad26 commit 05cbf80Copy full SHA for 05cbf80
components/dash-core-components/src/fragments/Graph.react.js
@@ -182,7 +182,16 @@ class PlotlyGraph extends Component {
182
gd.classList.add('dash-graph--pending');
183
184
return lazyLoadMathJax(mathjax)
185
- .then(() => Plotly.react(this.gd.current, figureClone))
+ .then(() => {
186
+ const gd = this.gd.current;
187
+
188
+ // double-check gd hasn't been unmounted
189
+ if (!gd) {
190
+ return;
191
+ }
192
193
+ Plotly.react(gd, figureClone);
194
+ })
195
.then(() => {
196
const gd = this.gd.current;
197
0 commit comments