diff --git a/app/app/root.tsx b/app/app/root.tsx
index 04cd395..4e4745e 100644
--- a/app/app/root.tsx
+++ b/app/app/root.tsx
@@ -6,6 +6,7 @@ import {
Scripts,
ScrollRestoration,
} from "react-router";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ThemeProvider } from "next-themes";
import type { Route } from "./+types/root";
@@ -13,6 +14,10 @@ import "./app.css";
import { AuthProvider } from "./lib/auth";
import { TooltipProvider } from "./components/ui/tooltip";
+const queryClient = new QueryClient({
+ defaultOptions: { queries: { staleTime: 30_000, retry: 1 } },
+});
+
export const links: Route.LinksFunction = () => [
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
{
@@ -43,15 +48,17 @@ export function Layout({ children }: { children: React.ReactNode }) {