From 9a89e0c1578737e252abf1b8d3f689ed78bf5b4e Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 4 Aug 2021 12:53:25 +0100 Subject: [PATCH] GraphNG: make sure we update when children changes (#37333) (#37521) (cherry picked from commit e3fe4a2d11d353b2488950c45fe026b378560081) Co-authored-by: Oscar Kilhed --- packages/grafana-ui/src/components/uPlot/Plot.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/grafana-ui/src/components/uPlot/Plot.tsx b/packages/grafana-ui/src/components/uPlot/Plot.tsx index 8fd0ed19189..c97bb0f1805 100755 --- a/packages/grafana-ui/src/components/uPlot/Plot.tsx +++ b/packages/grafana-ui/src/components/uPlot/Plot.tsx @@ -97,15 +97,6 @@ export class UPlotChart extends React.Component { this.state.ctx.plot?.destroy(); } - shouldComponentUpdate(nextProps: PlotProps, nextState: UPlotChartState) { - return ( - nextState.ctx !== this.state.ctx || - !sameDims(this.props, nextProps) || - !sameData(this.props, nextProps) || - !sameConfig(this.props, nextProps) - ); - } - componentDidUpdate(prevProps: PlotProps) { let { ctx } = this.state;