diff options
Diffstat (limited to 'src/frontend/app/root.tsx')
| -rw-r--r-- | src/frontend/app/root.tsx | 11 |
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> ); } |
