mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graph NG: Invalidate uPlot config on timezone changes (#29531)
This commit is contained in:
@@ -160,7 +160,7 @@ export const GraphNG: React.FC<GraphNGProps> = ({
|
|||||||
|
|
||||||
legendItemsRef.current = legendItems;
|
legendItemsRef.current = legendItems;
|
||||||
return builder;
|
return builder;
|
||||||
}, [configRev]);
|
}, [configRev, timeZone]);
|
||||||
|
|
||||||
if (alignedFrameWithGapTest == null) {
|
if (alignedFrameWithGapTest == null) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -105,7 +105,6 @@ export const DEFAULT_PLOT_CONFIG = {
|
|||||||
hooks: {},
|
hooks: {},
|
||||||
};
|
};
|
||||||
|
|
||||||
//pass plain confsig object,memoize!
|
|
||||||
export const usePlotConfig = (width: number, height: number, timeZone: TimeZone, configBuilder: UPlotConfigBuilder) => {
|
export const usePlotConfig = (width: number, height: number, timeZone: TimeZone, configBuilder: UPlotConfigBuilder) => {
|
||||||
const { arePluginsReady, plugins, registerPlugin } = usePlotPlugins();
|
const { arePluginsReady, plugins, registerPlugin } = usePlotPlugins();
|
||||||
const [isConfigReady, setIsConfigReady] = useState(false);
|
const [isConfigReady, setIsConfigReady] = useState(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user