Files
full-stack-fastapi-template/frontend/src/routes/__root.tsx
T
2025-12-08 19:27:08 +01:00

19 lines
651 B
TypeScript

import { ReactQueryDevtools } from "@tanstack/react-query-devtools"
import { createRootRoute, HeadContent, Outlet } from "@tanstack/react-router"
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools"
import ErrorComponent from "@/components/Common/ErrorComponent"
import NotFound from "@/components/Common/NotFound"
export const Route = createRootRoute({
component: () => (
<>
<HeadContent />
<Outlet />
<TanStackRouterDevtools position="bottom-right" />
<ReactQueryDevtools initialIsOpen={false} />
</>
),
notFoundComponent: () => <NotFound />,
errorComponent: () => <ErrorComponent />,
})