We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mechanism
withSentryErrorBoundary
1 parent 47342f3 commit ab66a0bCopy full SHA for ab66a0b
packages/solid/src/errorboundary.ts
@@ -17,7 +17,12 @@ export function withSentryErrorBoundary(ErrorBoundary: Component<ErrorBoundaryPr
17
const [local, others] = splitProps(props, ['fallback']);
18
19
const fallback = (error: unknown, reset: () => void): JSX.Element => {
20
- captureException(error);
+ captureException(error, {
21
+ mechanism: {
22
+ handled: true, // handled because user has to provide a fallback
23
+ type: 'solid.error-boundary',
24
+ },
25
+ });
26
27
const f = local.fallback;
28
return typeof f === 'function' ? f(error, reset) : f;
0 commit comments