-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Expand file tree
/
Copy path__root.tsx
More file actions
18 lines (17 loc) · 651 Bytes
/
__root.tsx
File metadata and controls
18 lines (17 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 />,
})