Skip to content

Commit

Permalink
feat: disable refetch for queries
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Sep 28, 2024
1 parent 85673f1 commit 9154bc1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lib/query.ts
Original file line number Diff line number Diff line change
@@ -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,
},
},
});

0 comments on commit 9154bc1

Please sign in to comment.