From 0ca5e55ba36a7b6343e4f3dc5ebd5ed0906a415c Mon Sep 17 00:00:00 2001 From: ajvpot <553597+ajvpot@users.noreply.github.com> Date: Tue, 19 Aug 2025 08:24:15 +0200 Subject: [PATCH] todo --- src/components/ConfigContext.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/ConfigContext.tsx b/src/components/ConfigContext.tsx index a403943..3b9c10b 100644 --- a/src/components/ConfigContext.tsx +++ b/src/components/ConfigContext.tsx @@ -64,6 +64,8 @@ export function ConfigProvider({ children }: { children: ReactNode }) { const firstRender = useRef(true); // Load from localStorage + // todo: this causes a flash of the default config before the local storage is loaded. use suspense? + // also causes race condition on the stats page if the defaults take longer to load than the selected region. useEffect(() => { const stored = localStorage.getItem("meshExplorerConfig"); if (stored) {