Skip to content

Commit c442742

Browse files
authored
Clarify error boundary react behaviour (#9610)
1 parent 6a0cdb9 commit c442742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/platforms/javascript/guides/react/features/error-boundary.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Sentry.withErrorBoundary(Example, { fallback: <p>an error has occurred</p> });
2828

2929
<Alert level="warning" title="Note">
3030

31-
In development mode, React will rethrow errors caught within an error boundary. This will result in errors being reported twice to Sentry with the above setup, but this won't occur in your production build.
31+
In development mode, React will rethrow errors caught within an error boundary to the global error handler. This will result in Sentry only reporting an error from the global error handler, but not from the error boundary itself. We recommend testing the error boundary with a production build of React.
3232

3333
</Alert>
3434

0 commit comments

Comments
 (0)