From bec09826eec6c102854ed33ac1254c36a0e6ee52 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Wed, 18 Feb 2026 01:23:28 -0600 Subject: [PATCH] =?UTF-8?q?perf:=20fix=20gcTime=20Infinity=20=E2=86=92=205?= =?UTF-8?q?min,=20reduce=20useAuthor=20retry=203=20=E2=86=92=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: shakespeare.diy --- src/App.tsx | 2 +- src/hooks/useAuthor.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index ba76e253..8db32e22 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -26,7 +26,7 @@ const queryClient = new QueryClient({ queries: { refetchOnWindowFocus: false, staleTime: 60000, // 1 minute - gcTime: Infinity, + gcTime: 300000, // 5 minutes }, }, }); diff --git a/src/hooks/useAuthor.ts b/src/hooks/useAuthor.ts index 271d4c2b..fe04c825 100644 --- a/src/hooks/useAuthor.ts +++ b/src/hooks/useAuthor.ts @@ -29,6 +29,6 @@ export function useAuthor(pubkey: string | undefined) { } }, staleTime: 5 * 60 * 1000, // Keep cached data fresh for 5 minutes - retry: 3, + retry: 1, }); }