-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add top-level ErrorBoundary component #1698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 01-26-refactor-error-component-names
Are you sure you want to change the base?
feat: add top-level ErrorBoundary component #1698
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
0fa7ae0 to
b8f873e
Compare
6b11c41 to
fe1d7b6
Compare
2f5f3a3 to
bedeb6d
Compare
fe1d7b6 to
8a682a5
Compare
| // Fallback: no error boundary (just render children) | ||
| // In the future, this could check for other error reporting services | ||
| return <>{children}</>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use ErrorBoundary from react-error-boundary package (which is already in). You may read more in https://kentcdodds.com/blog/use-react-error-boundary-to-handle-errors-in-react or start from https://www.npmjs.com/package/react-error-boundary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented.
8a682a5 to
f544686
Compare
bedeb6d to
2b4b0cd
Compare
f544686 to
5d61c09
Compare
2b4b0cd to
7e226d9
Compare
5d61c09 to
9dafa4a
Compare
7e226d9 to
9322f42
Compare
|
Note: I am actively working on implementing a refactor to simplify the contents of this PR |
9dafa4a to
8415728
Compare
9322f42 to
43d5e44
Compare
43d5e44 to
dcab8f2
Compare
8415728 to
6c74ead
Compare
dcab8f2 to
d58f11b
Compare
6c74ead to
584173c
Compare
2dfc190 to
f7d8484
Compare
82614d3 to
fccc289
Compare
70d8ec2 to
b7fff91
Compare
fccc289 to
1d5e2eb
Compare
1d5e2eb to
e18dc07
Compare
d87bcd2 to
17deda6
Compare
e18dc07 to
844c73a
Compare
17deda6 to
89f0750
Compare
844c73a to
5bcb71f
Compare
Add decoupled ErrorBoundary component that determines which error reporting service to use. Currently supports Bugsnag, but designed to be extensible for other services. Integrate into app root.
89f0750 to
8d037cb
Compare
5bcb71f to
15c6748
Compare

Description
Added a new
ErrorBoundarycomponent that wraps the entire application to catch and handle React errors. The component integrates with Bugsnag for error reporting when enabled, with a fallback option for when Bugsnag is not available. The implementation includes a custom error handler UI component and has been integrated at the root level of the application.Type of Change
Checklist
Test Instructions