mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-13 12:42:36 -05:00
Fix errors not getting logged
This commit is contained in:
parent
14f7507e2c
commit
dfd16cef2f
|
|
@ -30,6 +30,7 @@ module.exports = {
|
|||
"@typescript-eslint/no-unsafe-argument": 0,
|
||||
"@typescript-eslint/no-non-null-assertion": 0,
|
||||
"@typescript-eslint/no-explicit-any": 0,
|
||||
"react/prop-types": 0,
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import type { ErrorBoundaryComponent } from "@remix-run/node";
|
||||
import {
|
||||
json,
|
||||
type LinksFunction,
|
||||
|
|
@ -156,7 +157,9 @@ export function CatchBoundary() {
|
|||
);
|
||||
}
|
||||
|
||||
export function ErrorBoundary() {
|
||||
export const ErrorBoundary: ErrorBoundaryComponent = ({ error }) => {
|
||||
console.error(error);
|
||||
|
||||
return (
|
||||
<ThemeProvider specifiedTheme={Theme.DARK}>
|
||||
<Document>
|
||||
|
|
@ -164,4 +167,4 @@ export function ErrorBoundary() {
|
|||
</Document>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user