fix: animation config not updating for users after admin change

- Remove refetchOnWindowFocus: false — allow refetch on miniapp return
- Add initialDataUpdatedAt: 0 — treat localStorage cache as stale,
  refetch immediately instead of serving cached data for 60s
- Lower staleTime to 30s
This commit is contained in:
Fringg
2026-02-25 07:48:49 +03:00
parent 79ff7412cb
commit 94ddf319bd

View File

@@ -54,8 +54,8 @@ export function BackgroundRenderer() {
return result;
},
initialData: getCachedConfig() ?? undefined,
staleTime: 60_000,
refetchOnWindowFocus: false,
initialDataUpdatedAt: 0,
staleTime: 30_000,
});
const effectiveConfig = config ?? DEFAULT_ANIMATION_CONFIG;