Skip to content

Conversation

@billyvg
Copy link
Member

@billyvg billyvg commented May 1, 2025

This PR fixes <ErrorHandler> to add a cause error to when we catch an error with a React Error Boundary. This will help us debug this error (and future ones that hit <ErrorHandler>).

See this issue for what it will look like.

This PR fixes `<ErrorHandler>` to add a `cause` error to when we catch an error with a React Error Boundary. This will help us debug [this error](https://sentry.sentry.io/issues/6333431167/events/ecf1545d92834ceba543c2b62af63171/?project=11276) (and future ones that hit `<ErrorHandler>`).

See [this issue](https://sentry-emerging-tech.sentry.io/issues/6580362564/?project=6326737&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&stream_index=0) for what it will look like.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 1, 2025
@billyvg billyvg marked this pull request as ready for review May 1, 2025 18:35
@billyvg billyvg requested a review from a team May 1, 2025 18:35
@billyvg
Copy link
Member Author

billyvg commented May 1, 2025

@scttcper Updated our other error boundaries to behave more similarly

@billyvg billyvg requested a review from scttcper May 1, 2025 18:55
@billyvg billyvg merged commit 5a14a38 into master May 1, 2025
41 checks passed
@billyvg billyvg deleted the feat-ui-error-handler-react-cause branch May 1, 2025 21:20
andrewshie-sentry pushed a commit that referenced this pull request May 12, 2025
This PR fixes `<ErrorHandler>` to add a `cause` error to when we catch
an error with a React Error Boundary. This will help us debug [this
error](https://sentry.sentry.io/issues/6333431167/events/ecf1545d92834ceba543c2b62af63171/?project=11276)
(and future ones that hit `<ErrorHandler>`).

See [this
issue](https://sentry-emerging-tech.sentry.io/issues/6580362564/?project=6326737&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&stream_index=0)
for what it will look like.
@github-actions github-actions bot locked and limited conversation to collaborators May 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants