diff --git a/src/lib/query.ts b/src/lib/query.ts index 6d46de5..7c4b8d0 100644 --- a/src/lib/query.ts +++ b/src/lib/query.ts @@ -1,3 +1,11 @@ import { QueryClient } from '@tanstack/react-query'; -export const queryClient = new QueryClient(); +export const queryClient = new QueryClient({ + defaultOptions: { + queries: { + refetchOnWindowFocus: false, + refetchOnMount: false, + refetchOnReconnect: false, + }, + }, +});