Skip to content

Commit

Permalink
chore(react): update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Jun 5, 2020
1 parent e8d2832 commit fa2ab13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@

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

## 5.16.1

Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/errorboundary.tsx
Expand Up @@ -56,6 +56,8 @@ class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundarySta
}
}

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

0 comments on commit fa2ab13

Please sign in to comment.