diff --git a/src/App.tsx b/src/App.tsx index 97054260..94bc59d4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -46,7 +46,17 @@ import AdminBlog from "./pages/AdminBlog"; import ForceLogout from "./pages/ForceLogout"; import AuthCallback from "./pages/AuthCallback"; -const queryClient = new QueryClient(); +const queryClient = new QueryClient({ + defaultOptions: { + queries: { + refetchOnWindowFocus: false, // Disable automatic refetch on tab focus + refetchOnMount: true, // Keep refetch on component mount + refetchOnReconnect: true, // Keep refetch on network reconnect + retry: 1, // Keep retry attempts + staleTime: 0, // Keep data fresh + }, + }, +}); function AppContent() { return (