From 13b12dd31ba26ef2268c14777c12769d71a5528d Mon Sep 17 00:00:00 2001 From: Stephan Cilliers <5469870+stephancill@users.noreply.github.com> Date: Tue, 18 Jun 2024 11:41:42 +0200 Subject: [PATCH] fix: disable refetch rules --- src/app/providers.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/providers.tsx b/src/app/providers.tsx index 153b29a..5febfdb 100644 --- a/src/app/providers.tsx +++ b/src/app/providers.tsx @@ -16,7 +16,15 @@ const config = createConfig( }) ); -const queryClient = new QueryClient(); +const queryClient = new QueryClient({ + defaultOptions: { + queries: { + refetchOnMount: false, + refetchOnReconnect: false, + refetchOnWindowFocus: false, + }, + }, +}); export default function Providers({ children,