From e3fe4a2d11d353b2488950c45fe026b378560081 Mon Sep 17 00:00:00 2001 From: Oscar Kilhed Date: Wed, 4 Aug 2021 09:07:00 +0200 Subject: [PATCH] GraphNG: make sure we update when children changes (#37333) --- 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;