diff --git a/src/lib/query-client.js b/src/lib/query-client.js new file mode 100644 index 0000000..9b4d087 --- /dev/null +++ b/src/lib/query-client.js @@ -0,0 +1,11 @@ +import { QueryClient } from '@tanstack/react-query'; + + +export const queryClientInstance = new QueryClient({ + defaultOptions: { + queries: { + refetchOnWindowFocus: false, + retry: 1, + }, + }, +}); \ No newline at end of file