Skip to content

Replaced "unstable_handleError" with "componentDidCatch"#10200

Merged
bvaughn merged 1 commit intofacebook:masterfrom
bvaughn:error-boundaries
Jul 17, 2017
Merged

Replaced "unstable_handleError" with "componentDidCatch"#10200
bvaughn merged 1 commit intofacebook:masterfrom
bvaughn:error-boundaries

Conversation

@bvaughn
Copy link
Copy Markdown
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
Copy Markdown
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