Skip to content

Blog post: Error Handling in React 16#10267

Merged
gaearon merged 2 commits intofacebook:masterfrom
gaearon:error-handling-pr
Jul 26, 2017
Merged

Blog post: Error Handling in React 16#10267
gaearon merged 2 commits intofacebook:masterfrom
gaearon:error-handling-pr

Conversation

@gaearon
Copy link
Copy Markdown
Collaborator

@gaearon gaearon commented Jul 24, 2017

screencapture-localhost-4000-react-blog-2017-07-24-error-handling-in-react-16-html-1500924392813

@gaearon gaearon force-pushed the error-handling-pr branch from 0c242e4 to 42d8eb2 Compare July 26, 2017 19:00
@gaearon gaearon merged commit 4ac21f2 into facebook:master Jul 26, 2017
gaearon added a commit that referenced this pull request Jul 26, 2017
* Blog post: Error Handling in React 16

* Change the date
@liorocks
Copy link
Copy Markdown

Here's a link: Error Handling in React 16


## Naming Changes from React 15

React 15 included a very limited support for error boundaries under a different method name: `unstable_handleError`. This method no longer works, and you will need to change it to `componentDidCatch` in your code starting from the first 16 beta release. No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you mention about a codemod for this?

https://github.com/reactjs/react-codemod#error-boundaries

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot about it. Want to send a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants