Add src/lib/query-client.js
This commit is contained in:
parent
62f526521d
commit
1bb06c4f1b
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { QueryClient } from '@tanstack/react-query';
|
||||||
|
|
||||||
|
|
||||||
|
export const queryClientInstance = new QueryClient({
|
||||||
|
defaultOptions: {
|
||||||
|
queries: {
|
||||||
|
refetchOnWindowFocus: false,
|
||||||
|
retry: 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
Loading…
Reference in New Issue