From dce9f36a8e7db0ab9eb5ae5d9ff337dfb03586ac Mon Sep 17 00:00:00 2001 From: Palash gupta Date: Fri, 8 Apr 2022 02:12:54 +0530 Subject: [PATCH] chore: refetchOnWindowFocus is made false to global level --- frontend/src/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index 0abe9a6453..99c7758c41 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -13,7 +13,13 @@ if (process.env.NODE_ENV === 'development') { reportWebVitals(console.log); } -const queryClient = new QueryClient(); +const queryClient = new QueryClient({ + defaultOptions: { + queries: { + refetchOnWindowFocus: false, + }, + }, +}); ReactDOM.render(