Skip to content

Commit

Permalink
Update docs/platforms/javascript/guides/react/features/react-router.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Liza Mock <[email protected]>
  • Loading branch information
chargome and lizokm committed Sep 19, 2024
1 parent bc9d142 commit 2745ff2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ You can instrument [`createMemoryRouter`](https://reactrouter.com/en/main/router

### Custom Error Boundaries

When using `react-router`, errors thrown inside route elements are only re-thrown in **development mode**. In production, these errors won't be surfaced unless manually captured. If you **don't** have a custom error boundary in place, `react-router` will create a default one that "swallows" all errors.
When using `react-router`, errors thrown inside route elements will only be re-thrown in **development mode**. In production, these errors won't be surfaced unless manually captured. If you **don't** have a custom error boundary in place, `react-router` will create a default one that "swallows" all errors.

<Alert>
Note that this only applies to render method and lifecycle errors, since React doesn't need error boundaries to handle errors in event handlers.
Expand Down

0 comments on commit 2745ff2

Please sign in to comment.