Skip to content

stop using componentWillUpdate #77

Closed
@alexcjohnson

Description

@alexcjohnson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions