[WEB-5413] feat: adding sentry error handling in web, space and admin (#8099)
This commit is contained in:
parent
0b78e03055
commit
30da349475
33 changed files with 872 additions and 414 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import * as Sentry from "@sentry/react-router";
|
||||
import { Links, Meta, Outlet, Scripts } from "react-router";
|
||||
import type { HeadersFunction, LinksFunction } from "react-router";
|
||||
// assets
|
||||
|
|
@ -79,6 +80,10 @@ export function HydrateFallback() {
|
|||
);
|
||||
}
|
||||
|
||||
export function ErrorBoundary() {
|
||||
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
|
||||
if (error) {
|
||||
Sentry.captureException(error);
|
||||
}
|
||||
|
||||
return <ErrorPage />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue