Skip to content

Commit

Permalink
Add console.error to the error boundary (#2498)
Browse files Browse the repository at this point in the history
Add console.error to error boundary
  • Loading branch information
charliepark authored Oct 10, 2024
1 parent 0a47097 commit f6e1917
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/components/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ export const ErrorBoundary = (props: { children: React.ReactNode }) => (
export function RouterDataErrorBoundary() {
// TODO: validate this unknown at runtime _before_ passing to ErrorFallback
const error = useRouteError() as Props['error']
console.error(error)
return <ErrorFallback error={error} />
}

0 comments on commit f6e1917

Please sign in to comment.