You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[x] Structured component stack parsing with sourcemap-ready frames
14
15
15
16
## FlareErrorBoundary: `fallback` property
16
17
17
18
### Inspiration
18
19
19
-
-[Sentry ErrorBoundary `fallback`](https://docs.sentry.io/platforms/javascript/guides/react/features/error-boundary/#fallback-ui-options) -- supports a static element and a render function receiving `{ error, componentStack, resetError }`
20
-
-[react-error-boundary](https://github.com/bvaughn/react-error-boundary) -- the most popular standalone error boundary library, supports `fallback`, `fallbackRender`, and `FallbackComponent` as three separate props
supports a static element and a render function receiving `{ error, componentStack, resetError }`
23
+
-[react-error-boundary](https://github.com/bvaughn/react-error-boundary) -- the most popular standalone error boundary
24
+
library, supports `fallback`, `fallbackRender`, and `FallbackComponent` as three separate props
21
25
22
26
### Why
23
27
@@ -55,9 +59,11 @@ The `fallback` prop accepts either a static `ReactNode` or a render function. Th
55
59
56
60
### Inspiration
57
61
58
-
-[Sentry ErrorBoundary `onError`](https://docs.sentry.io/platforms/javascript/guides/react/features/error-boundary/#options-reference) -- called when the boundary encounters an error
59
-
-[react-error-boundary `onError`](https://github.com/bvaughn/react-error-boundary?tab=readme-ov-file#onerror) -- same concept, receives `(error, info)`
-[react-error-boundary `onError`](https://github.com/bvaughn/react-error-boundary?tab=readme-ov-file#onerror) -- same
66
+
concept, receives `(error, info)`
61
67
62
68
### Why
63
69
@@ -79,7 +85,9 @@ showing a toast, updating app state, etc. This fires *after* the error has been
79
85
80
86
### Inspiration
81
87
82
-
-[Sentry ErrorBoundary `beforeCapture`](https://docs.sentry.io/platforms/javascript/guides/react/features/error-boundary/#options-reference) -- the only competitor that offers this; receives the Sentry scope to set tags and context before the event is sent
the only competitor that offers this; receives the Sentry scope to set tags and context before the event is sent
83
91
84
92
No other competitor (Datadog, Bugsnag, Rollbar, LogRocket) provides an equivalent hook.
85
93
@@ -104,8 +112,11 @@ the developer decide what to include rather than trying to automatically seriali
104
112
105
113
### Inspiration
106
114
107
-
-[react-error-boundary `onReset`](https://github.com/bvaughn/react-error-boundary?tab=readme-ov-file#onreset) -- the primary inspiration; called when the boundary resets, receives details about what triggered the reset
108
-
-[Sentry ErrorBoundary `onReset`](https://github.com/getsentry/sentry-javascript/blob/master/packages/react/src/errorboundary.tsx) -- exists in Sentry's source code (receives `error, componentStack, eventId`) but is not documented in their official docs
115
+
-[react-error-boundary `onReset`](https://github.com/bvaughn/react-error-boundary?tab=readme-ov-file#onreset) -- the
116
+
primary inspiration; called when the boundary resets, receives details about what triggered the reset
in Sentry's source code (receives `error, componentStack, eventId`) but is not documented in their official docs
109
120
110
121
### Why
111
122
@@ -131,7 +142,8 @@ error allows conditional cleanup based on what went wrong.
131
142
132
143
### Inspiration
133
144
134
-
-[react-error-boundary `resetKeys`](https://github.com/bvaughn/react-error-boundary?tab=readme-ov-file#resetkeys) -- the sole source for this pattern; Sentry does not offer it
the sole source for this pattern; Sentry does not offer it
135
147
136
148
This is a feature unique to react-error-boundary that neither Sentry nor any other error tracking competitor provides.
137
149
When any value in the `resetKeys` array changes between renders (compared via `Object.is`), the boundary automatically
@@ -165,8 +177,11 @@ function App() {
165
177
166
178
### Inspiration
167
179
168
-
-[Sentry `reactErrorHandler`](https://docs.sentry.io/platforms/javascript/guides/react/features/error-boundary/#error-hooks-vs-errorboundary) -- provides `Sentry.reactErrorHandler()` for all three React 19 root error hooks, with an optional callback parameter
169
-
-[React 19 `createRoot` error handling docs](https://react.dev/reference/react-dom/client/createRoot#parameters) -- the React docs describing `onCaughtError`, `onUncaughtError`, and `onRecoverableError`
0 commit comments