mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +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;
|
return result;
|
||||||
},
|
},
|
||||||
initialData: getCachedConfig() ?? undefined,
|
initialData: getCachedConfig() ?? undefined,
|
||||||
staleTime: 60_000,
|
initialDataUpdatedAt: 0,
|
||||||
refetchOnWindowFocus: false,
|
staleTime: 30_000,
|
||||||
});
|
});
|
||||||
|
|
||||||
const effectiveConfig = config ?? DEFAULT_ANIMATION_CONFIG;
|
const effectiveConfig = config ?? DEFAULT_ANIMATION_CONFIG;
|
||||||
|
|||||||
Reference in New Issue
Block a user