We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b87dadf commit 0cf1ae0Copy full SHA for 0cf1ae0
packages/remix-react/errorBoundaries.tsx
@@ -70,6 +70,10 @@ export class RemixErrorBoundary extends React.Component<
70
* When app's don't provide a root level ErrorBoundary, we default to this.
71
*/
72
export function RemixRootDefaultErrorBoundary({ error }: { error: Error }) {
73
+ // Only log client side to avoid double-logging on the server
74
+ React.useEffect(() => {
75
+ console.error(error);
76
+ }, [error]);
77
return (
78
<html lang="en">
79
<head>
0 commit comments