Themes: Re-init graph on theme change (#59690)

Re-init graph on theme change
This commit is contained in:
Torkel Ödegaard
2022-12-02 11:55:18 +01:00
committed by GitHub
parent 5712b05330
commit 069c99fba3

View File

@@ -10,7 +10,7 @@ import { UPlotConfigBuilder } from '../uPlot/config/UPlotConfigBuilder';
import { preparePlotConfigBuilder } from './utils';
const propsToDiff: Array<string | PropDiffFn> = ['legend', 'options'];
const propsToDiff: Array<string | PropDiffFn> = ['legend', 'options', 'theme'];
type TimeSeriesProps = Omit<GraphNGProps, 'prepConfig' | 'propsToDiff' | 'renderLegend'>;