componentDidUpdate(prevProps, prevState) {
    if (!prevState.shouldRenderChart
      && this.state.shouldRenderChart
      && typeof this.props.onChartRendered === 'function'
    ) {
      this.props.onChartRendered();
    }
  }
/**
   * Call render callback when shouldRenderChart changes from false to true
   */
Call render callback when shouldRenderChart changes from false to true
Call render callback when shouldRenderChart changes from false to true
componentDidUpdate(prevProps, prevState) {
    if (!prevState.shouldRenderChart
      && this.state.shouldRenderChart
      && typeof this.props.onChartRendered === 'function'
    ) {
      this.props.onChartRendered();
    }
  }
componentDidUpdate ( prevProps , prevState ) { if ( ! prevState . shouldRenderChart && this . state . shouldRenderChart && typeof this . props . onChartRendered === 'function' ) { this . props . onChartRendered ( ) ; } }
Call render callback when shouldRenderChart changes from false to true
Call render callback when shouldRenderChart changes from false to true