src/components/ListItem.js
// Only update visible, expanded and in the history chain components
Only update visible, expanded and in the history chain components
Only update visible expanded and in the history chain components
shouldComponentUpdate(newProps, newState) {
    return (
      newProps.visible != this.props.visible ||
      (this.hasChildren() && newState.expanded != this.state.expanded) ||
      this.props.focusHistory.includes(this.props.id)
    );
  }
shouldComponentUpdate ( newProps , newState ) { return ( newProps . visible != this . props . visible || ( this . hasChildren ( ) && newState . expanded != this . state . expanded ) || this . props . focusHistory . includes ( this . props . id ) ) ; }
Only update visible, expanded and in the history chain components
Only update visible expanded and in the history chain components