Closed
Description
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, thePlotly.newPlot
in the initial draw can safely be turned intoPlotly.react
.
Metadata
Metadata
Assignees
Labels
No labels