Improve responsive layouts and streamline page loading
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 8m58s

This commit is contained in:
2026-10-21 11:15:07 +05:00
parent 690fe12c2c
commit 0330c4072f
16 changed files with 650 additions and 118 deletions

View File

@@ -32,6 +32,7 @@ export function SiteSettingsProvider({
const version = useRef(0);
const pending = useRef(false);
const pathname = usePathname();
const previousPathname = useRef(pathname);
const updateSettings = useCallback((next: SiteSettings) => {
version.current++;
setSettings(next);
@@ -51,6 +52,9 @@ export function SiteSettingsProvider({
}
}, []);
useEffect(() => {
// SSR already supplied fresh settings for the initial page.
if (previousPathname.current === pathname) return;
previousPathname.current = pathname;
void refresh();
}, [pathname, refresh]);
useEffect(() => {