generic error view with try again

This commit is contained in:
2026-06-11 11:12:31 +02:00
parent 5bf4ec95c8
commit 6ef08f4b91
5 changed files with 114 additions and 17 deletions
+5
View File
@@ -1,5 +1,6 @@
import { createFileRoute, notFound } from "@tanstack/react-router";
import { z } from "zod";
import GenericErrorView from "#/components/Error/GenericErrorView.tsx";
import Callback from "#/pages/Callback.tsx";
const callbackSchema = z.object({
@@ -14,7 +15,11 @@ export const Route = createFileRoute("/callback")({
throw notFound();
}
},
component: RouteComponent,
errorComponent: ({ error, reset }) => (
<GenericErrorView error={error} resetErrorBoundary={reset} />
),
});
function RouteComponent() {