Skip to content

broken connections #1

@balabukha

Description

@balabukha

Hi! I've an issue, when change text in node, in another component by changing datas in index.js and transfer them in RightArea

.js. by componentWillReceiveProps, the connections become broken after creating a new node, what it could be?
the code below:

RightArea:

export default class RightArea extends React.Component {
  state = {
    initialized: false,
    dialogVisible: false,
    datas: this.props.datas,
    dialogTitle: '',
    labelText: '',
    nodes: [],
    edges: [],
    info: null
  };

  componentWillReceiveProps = newProps => {
    this.setState(
      {
        datas: newProps.datas,
        nodes: newProps.datas.nodes,
        edges: newProps.datas.edges
      }
    );
  };


  componentDidMount() {
    this.init();
    this.refs.nodes = [];
  }
  componentWillMount = () => {};
  hideModal = () => {
    this.setState({ dialogVisible: false });
  };

2018-06-03 19 27 04

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