From a9a7a367c0a5b6471381f69e35fe812e8aa72a83 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Thu, 26 Dec 2024 13:22:01 +0800 Subject: [PATCH] fix: set dedupingInterval to 500 --- app/lib/server-data-context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/server-data-context.tsx b/app/lib/server-data-context.tsx index 7074b61b4..98a83773a 100644 --- a/app/lib/server-data-context.tsx +++ b/app/lib/server-data-context.tsx @@ -27,7 +27,7 @@ export function ServerDataProvider({ children }: { children: ReactNode }) { const { data, error, isLoading } = useSWR("/api/server", nezhaFetcher, { refreshInterval: Number(getEnv("NEXT_PUBLIC_NezhaFetchInterval")) || 2000, - dedupingInterval: 1000, + dedupingInterval: 500, }) useEffect(() => {