Commit 974233bf by Dominik Prokop Committed by GitHub

Graph NG: Invalidate uPlot config on timezone changes (#29531)

parent 2a61d7ff
......@@ -160,7 +160,7 @@ export const GraphNG: React.FC<GraphNGProps> = ({
legendItemsRef.current = legendItems;
return builder;
}, [configRev]);
}, [configRev, timeZone]);
if (alignedFrameWithGapTest == null) {
return (
......
......@@ -105,7 +105,6 @@ export const DEFAULT_PLOT_CONFIG = {
hooks: {},
};
//pass plain confsig object,memoize!
export const usePlotConfig = (width: number, height: number, timeZone: TimeZone, configBuilder: UPlotConfigBuilder) => {
const { arePluginsReady, plugins, registerPlugin } = usePlotPlugins();
const [isConfigReady, setIsConfigReady] = useState(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment