mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user