From 94ddf319bd242211cbebf74e89a6052856f84f60 Mon Sep 17 00:00:00 2001 From: Fringg Date: Wed, 25 Feb 2026 07:48:49 +0300 Subject: [PATCH] fix: animation config not updating for users after admin change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- src/components/backgrounds/BackgroundRenderer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/backgrounds/BackgroundRenderer.tsx b/src/components/backgrounds/BackgroundRenderer.tsx index 36d6419..17137b6 100644 --- a/src/components/backgrounds/BackgroundRenderer.tsx +++ b/src/components/backgrounds/BackgroundRenderer.tsx @@ -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;