From 8fd9e364fd933f39d2d0789cc642481dbe732f5f Mon Sep 17 00:00:00 2001 From: dongmucat <1127093059@qq.com> Date: Tue, 17 Mar 2026 22:02:10 +0800 Subject: [PATCH] perf(web): reduce react-query stale time to 30s --- web/src/app/providers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/app/providers.tsx b/web/src/app/providers.tsx index bdba8277..37880816 100644 --- a/web/src/app/providers.tsx +++ b/web/src/app/providers.tsx @@ -7,7 +7,7 @@ import { router } from './router' const queryClient = new QueryClient({ defaultOptions: { queries: { - staleTime: 5 * 60 * 1000, + staleTime: 30 * 1000, retry: (failureCount, error) => { // Don't retry on 401/403/404 if (error instanceof Error && /HTTP (401|403|404)/.test(error.message)) {