diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 8a9bfd2..8d38378 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -12,9 +12,18 @@ export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()({ component: RootComponent, + notFoundComponent: NotFoundComponent, }) -export function RootComponent() { +function NotFoundComponent() { + const nav = Route.useNavigate() + nav({ + to: "/", + }) + return
+} + +function RootComponent() { useOnReload() return (