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, }); }