diff --git a/apps/portal/src/pages/_app.tsx b/apps/portal/src/pages/_app.tsx index 5de4ac99..11606124 100644 --- a/apps/portal/src/pages/_app.tsx +++ b/apps/portal/src/pages/_app.tsx @@ -53,13 +53,18 @@ export default withTRPC({ }), httpBatchLink({ url }), ], - transformer: superjson, - url, /** - * @link https://react-query.tanstack.com/reference/QueryClient + * @link https://tanstack.com/query/v4/docs/reference/QueryClient */ - // queryClientConfig: { defaultOptions: { queries: { staleTime: 60 } } }, - + queryClientConfig: { + defaultOptions: { + queries: { + refetchOnWindowFocus: false, + }, + }, + }, + transformer: superjson, + url, // To use SSR properly you need to forward the client's headers to the server // headers: () => { // if (ctx?.req) {