Skip to content

Commit

Permalink
fix: disable refetch rules
Browse files Browse the repository at this point in the history
  • Loading branch information
stephancill committed Jun 18, 2024
1 parent 8225365 commit 13b12dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 13b12dd

Please sign in to comment.