diff --git a/src/renderer/src/libs/query.ts b/src/renderer/src/libs/query.ts index 2a0b421f..46ac3d88 100644 --- a/src/renderer/src/libs/query.ts +++ b/src/renderer/src/libs/query.ts @@ -3,7 +3,9 @@ import { QueryClient } from '@tanstack/react-query' export const queryClient = new QueryClient({ defaultOptions: { queries: { - retry: 0, + retry: false, + refetchOnMount: false, + refetchOnWindowFocus: false, gcTime: Infinity, staleTime: 5 * 60 * 1000, // 5 minutes },