From 4817c0c2670eecbe2d6a2e59bdd66eaa35ff16fc Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Sat, 5 Aug 2023 12:57:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Updating=20search=20engine=20not?= =?UTF-8?q?=20working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/_app.tsx | 77 +++++++++---------- .../tanstack/queryClient.tool.ts | 9 ++- 2 files changed, 44 insertions(+), 42 deletions(-) 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, + }, + }, +});