aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/root.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-22 18:16:57 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-22 18:16:57 +0100
commit4b7eaa318f22d7cc768491c421cb7aeac477f95d (patch)
tree0b39abce444679396475e4f48885479e2ae0650f /src/frontend/app/root.tsx
parent91f7d7dd5a4ca8453cfdbc9a3beeb216b6638ef7 (diff)
Implement retrieving next arrivals for a stop (scheduled only)
Diffstat (limited to 'src/frontend/app/root.tsx')
-rw-r--r--src/frontend/app/root.tsx11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/frontend/app/root.tsx b/src/frontend/app/root.tsx
index 49c9dc8..1354660 100644
--- a/src/frontend/app/root.tsx
+++ b/src/frontend/app/root.tsx
@@ -20,8 +20,11 @@ const pmtiles = new Protocol();
maplibregl.addProtocol("pmtiles", pmtiles.tile);
//#endregion
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import "./i18n";
+const queryClient = new QueryClient();
+
export const links: Route.LinksFunction = () => [];
export function Layout({ children }: { children: React.ReactNode }) {
@@ -89,9 +92,11 @@ export default function App() {
}
return (
- <AppProvider>
- <AppShell />
- </AppProvider>
+ <QueryClientProvider client={queryClient}>
+ <AppProvider>
+ <AppShell />
+ </AppProvider>
+ </QueryClientProvider>
);
}