From 7e7c74503b5c55a01110af20372abeeef3e6643a Mon Sep 17 00:00:00 2001 From: Raul Duarte Pereira Date: Thu, 29 Aug 2024 19:21:12 -0300 Subject: [PATCH] CU-86duf5c4b - NEON3 - Adjust our implementation so we don't do a full refresh when focusing from idle --- src/renderer/src/libs/query.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 },