Skip to content

Commit

Permalink
Try componentDidCatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Aug 9, 2021
1 parent e1795e4 commit bd42ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/error-boundary/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default class ErrorBoundary extends Component {
};
}

static getDerivedStateFromError( error ) {
return { error };
componentDidCatch( error ) {
this.setState( { error } );
}

reboot() {
Expand Down

0 comments on commit bd42ec6

Please sign in to comment.