Fix errors not getting logged

This commit is contained in:
Kalle 2022-10-23 12:49:05 +03:00
parent 14f7507e2c
commit dfd16cef2f
2 changed files with 6 additions and 2 deletions

View File

@ -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: {

View File

@ -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>
);
}
};