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
+2
View File
@@ -3,6 +3,7 @@ import { createRootRoute, HeadContent, Scripts } from "@tanstack/react-router";
import { TanStackRouterDevtoolsPanel } from "@tanstack/react-router-devtools";
import { type ReactNode, Suspense } from "react";
import { ToastContainer } from "react-toastify";
import GenericErrorView from "#/components/Error/GenericErrorView.tsx";
import { MatomoAnalytics } from "#/components/MatomoAnalytics.tsx";
import { LichessUserProvider } from "#/context/LichessUserContext.tsx";
import Footer from "../components/Footer";
@@ -43,6 +44,7 @@ export const Route = createRootRoute({
],
}),
shellComponent: RootDocument,
errorComponent: ({ error }) => <GenericErrorView error={error} />,
});
function RootDocument({ children }: { children: ReactNode }) {