Skip to content

Commit c30949e

Browse files
committed
♻️ Add error component to root route
1 parent 0beaf7a commit c30949e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/src/routes/__root.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { createRootRoute, Outlet } from "@tanstack/react-router"
33
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools"
44

55
import NotFound from "@/components/Common/NotFound"
6+
import ErrorComponent from "@/components/Common/ErrorComponent"
67

78
export const Route = createRootRoute({
89
component: () => (
@@ -13,4 +14,5 @@ export const Route = createRootRoute({
1314
</>
1415
),
1516
notFoundComponent: () => <NotFound />,
17+
errorComponent: () => <ErrorComponent/>,
1618
})

0 commit comments

Comments
 (0)