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) {