From 1bb06c4f1b18ee6357fa0681eb69d9d94016d9fc Mon Sep 17 00:00:00 2001 From: Eric Lay Date: Wed, 11 Mar 2026 08:49:35 -0500 Subject: [PATCH] Add src/lib/query-client.js --- src/lib/query-client.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/lib/query-client.js 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