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.
2 parents 0ec2bfa + fed05e0 commit 92e5d1fCopy full SHA for 92e5d1f
src/ErrorBoundary.js
@@ -37,10 +37,10 @@ class ErrorBoundary extends Component {
37
38
unstable_handleError(error: Error, info: ErrorInfo):void {
39
// This method is a fallback for react <= 16.0.0-alpha.13
40
- this.componentDidError(error, info);
+ this.componentDidCatch(error, info);
41
}
42
43
- componentDidError(error: Error, info: ErrorInfo):void {
+ componentDidCatch(error: Error, info: ErrorInfo):void {
44
const {onError} = this.props;
45
46
if (typeof onError === 'function') {
@@ -66,4 +66,4 @@ class ErrorBoundary extends Component {
66
67
68
69
-export default ErrorBoundary;
+export default ErrorBoundary;
0 commit comments