code: function (oldProps) {
        var didUpdate = updateObject(this.state.chart, oldProps, this.props);
  
        // TODO make this faster
        if (didUpdate) {
          this.state.chart.validateNow(true);
        }
      }
docs: TODO is this correct ? should this use componentWillUpdate instead ?