diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 5755fc19d..8396c4beb 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -83,49 +83,44 @@ function App( <> - - - {(colorScheme) => ( - - + {(colorScheme) => ( + + - - - - - - - - - )} - - - + Switch: { + styles: { + input: { cursor: 'pointer' }, + label: { cursor: 'pointer' }, + }, + }, + }, + primaryColor, + primaryShade, + colorScheme, + }} + withGlobalStyles + withNormalizeCSS + > + + + + + + + + + )} + + ); diff --git a/src/tools/server/configurations/tanstack/queryClient.tool.ts b/src/tools/server/configurations/tanstack/queryClient.tool.ts index 6d46de591..5b9d269e8 100644 --- a/src/tools/server/configurations/tanstack/queryClient.tool.ts +++ b/src/tools/server/configurations/tanstack/queryClient.tool.ts @@ -1,3 +1,10 @@ import { QueryClient } from '@tanstack/react-query'; -export const queryClient = new QueryClient(); +export const queryClient = new QueryClient({ + defaultOptions: { + queries: { + staleTime: 1000 * 60 * 5, + refetchOnWindowFocus: false, + }, + }, +});