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.
1 parent 83445eb commit 6159436Copy full SHA for 6159436
packages/react/src/error.ts
@@ -1,4 +1,4 @@
1
-import { captureException, withScope } from '@sentry/browser';
+import { captureException } from '@sentry/browser';
2
import { isError } from '@sentry/core';
3
import type { ErrorInfo } from 'react';
4
import { version } from 'react';
@@ -64,10 +64,7 @@ export function captureReactException(
64
setCause(error, errorBoundaryError);
65
}
66
67
- return withScope(scope => {
68
- scope.setContext('react', { componentStack });
69
- return captureException(error, hint);
70
- });
+ return captureException(error, hint);
71
72
73
/**
0 commit comments