mirror of
https://github.com/ajvpot/meshexplorer.git
synced 2026-08-06 00:22:45 +02:00
todo
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user