mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-20 03:32:09 +10:00
refactor(v4.0.0-alpha): beginning of a new era
This commit is contained in:
16
apps/client/src/libs/query-client.ts
Normal file
16
apps/client/src/libs/query-client.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import { QueryClient } from "@tanstack/react-query";
|
||||
|
||||
export const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
mutations: {
|
||||
retry: false,
|
||||
},
|
||||
queries: {
|
||||
retry: false,
|
||||
refetchOnMount: false,
|
||||
refetchOnReconnect: false,
|
||||
refetchOnWindowFocus: false,
|
||||
staleTime: 1000 * 60, // 1 minute
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user