Skip to content

Replaced "unstable_handleError" with "componentDidCatch" #10200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2017

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Jul 17, 2017

React introduced the experimental "error boundaries" feature in version 15. Components define an unstable_handleError method to opt into this feature. Version 16 finalizes support for error boundaries, but with a new name- componentDidCatch.

I ran a codemod to rename all identifiers in the React codebase. I also searched-and-replaced strings occurrences (eg test case names).

Relates to the "make error boundaries official" beta-blocker in #8854

@bvaughn bvaughn requested a review from flarnie July 17, 2017 20:00
@bvaughn bvaughn changed the title Replaced "unstable_handleError" with "componentDidError" Replaced "unstable_handleError" with "componentDidCatch" Jul 17, 2017
Ran new codemod to rename all identifiers. Searched-and-replaced strings occurrences.
@bvaughn bvaughn force-pushed the error-boundaries branch from b27d3a3 to 3a6a8ae Compare July 17, 2017 20:05
Copy link
Contributor

@flarnie flarnie left a comment

Choose a reason for hiding this comment

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

🎸⚡🎆

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.

3 participants