Skip to content

Commit 2f638a4

Browse files
committed
fix(react): set componentStack properly
1 parent e4a0db2 commit 2f638a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/errorboundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundarySta
3535
public state: ErrorBoundaryState = INITIAL_STATE;
3636

3737
public componentDidCatch(error: Error, { componentStack }: React.ErrorInfo): void {
38-
Sentry.captureException(error, { contexts: { componentStack } });
38+
Sentry.captureException(error, { contexts: { react: { componentStack } } });
3939
const { onError, showDialog, dialogOptions } = this.props;
4040
if (onError) {
4141
onError(error, componentStack);

0 commit comments

Comments
 (0)