Skip to content

Commit 2d39ffc

Browse files
authored
Merge pull request #2 from blling/remove-unstable_handleError
Remove unstable_handleError
2 parents 208a8bf + 2a77a3a commit 2d39ffc

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"webpack": "^3.3.0"
4545
},
4646
"peerDependencies": {
47-
"react": "^16.0.0-alpha.13",
48-
"react-dom": "^16.0.0-alpha.13"
47+
"react": "^16.0.0-beta.1",
48+
"react-dom": "^16.0.0-beta.1"
4949
}
5050
}

src/ErrorBoundary.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ class ErrorBoundary extends Component {
3535
};
3636
}
3737

38-
unstable_handleError(error: Error, info: ErrorInfo):void {
39-
// This method is a fallback for react <= 16.0.0-alpha.13
40-
this.componentDidCatch(error, info);
41-
}
42-
4338
componentDidCatch(error: Error, info: ErrorInfo):void {
4439
const {onError} = this.props;
4540

0 commit comments

Comments
 (0)