This commit is contained in:
ajvpot
2025-08-19 08:24:15 +02:00
parent 6091f1b43a
commit 0ca5e55ba3
+2
View File
@@ -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) {