Skip to content

Stack not updating on data change? #2

@goncy

Description

@goncy

I think something like:

componentWillReceiveProps(nextProps) {
      if (nextProps.data.length !== this.props.data.length) {
        this.setState({
          data: nextProps.data
        })
      }
    }

is missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions