You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we update the plot in componentWillUpdate - it works, but it's a little weird and this method is deprecated.
Put the conditionals preventing updates into shouldComponentUpdate?
Move the update itself to componentDidUpdate
The chain of events in componentDidMount (initial draw) and the update code are a little different, but there may be some opportunity to DRY this up - at least, the Plotly.newPlot in the initial draw can safely be turned into Plotly.react.
The text was updated successfully, but these errors were encountered:
No, v1.34.0 is in fact the version that introduced Plotly.react... which makes sense since the fallback code for missing Plotly.react has already been removed.
Currently we update the plot in
componentWillUpdate
- it works, but it's a little weird and this method is deprecated.shouldComponentUpdate
?componentDidUpdate
componentDidMount
(initial draw) and the update code are a little different, but there may be some opportunity to DRY this up - at least, thePlotly.newPlot
in the initial draw can safely be turned intoPlotly.react
.The text was updated successfully, but these errors were encountered: