Skip to content

Commit fa2ab13

Browse files
committed
chore(react): update CHANGELOG
1 parent e8d2832 commit fa2ab13

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66
- [react] feat: Add @sentry/react package (#2631)
7+
- [react] feat: Add Error Boundary component (#2647)
78

89
## 5.16.1
910

packages/react/src/errorboundary.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundarySta
5656
}
5757
}
5858

59+
// If render key changes and there is an error, the component is reset.
60+
// This provides an easy way for users to reset their error boundary.
5961
public componentDidUpdate(prevProps: ErrorBoundaryProps): void {
6062
const { error } = this.state;
6163
const { renderKey, onReset } = this.props;

0 commit comments

Comments
 (0)