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 2745ff2 commit b928920
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ You can instrument [`createMemoryRouter`](https://reactrouter.com/en/main/router

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.
</Alert>
<Note>
Note, that this only applies to render method and lifecycle errors since React doesn't need error boundaries to handle errors in event handlers.
</Note>

To send errors to Sentry when using a custom error boundary, use the `Sentry.captureException` method:

Expand Down

0 comments on commit b928920

Please sign in to comment.