mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
GraphNG: make sure we update when children changes (#37333)
This commit is contained in:
parent
2e476167eb
commit
e3fe4a2d11
@ -97,15 +97,6 @@ export class UPlotChart extends React.Component<PlotProps, UPlotChartState> {
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user