Skip to content

Replace deprecated / async-unsafe lifecycles #1008

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

Closed
bvaughn opened this issue Feb 10, 2018 · 3 comments
Closed

Replace deprecated / async-unsafe lifecycles #1008

bvaughn opened this issue Feb 10, 2018 · 3 comments

Comments

@bvaughn
Copy link
Owner

bvaughn commented Feb 10, 2018

Replace componentWillMount, componentWillReceiveProps, and componentWillUpdate with async-safe lifecycles in advance of React 16.4 deprecation warnings. Use react-lifecycles-compat to ensure backwards compatibility.

Relates to reactjs/rfcs/pull/6

In-progress documentation available at reactjs/react.dev/pull/587 and reactjs/react.dev/pull/596

RFC at https://github.com/reactjs/rfcs/blob/master/text/0006-static-lifecycle-methods.md

@bvaughn bvaughn self-assigned this Feb 10, 2018
@bvaughn
Copy link
Owner Author

bvaughn commented Feb 10, 2018

FYI @TrySound, I'm picking this up for the weekend. Do you have any major structural changes in progress? And if not, could you hold off until I'm done with this upgrade?

@TrySound
Copy link
Contributor

Awesome. No, I don't have. Only rollup, but I'm sure it's not related.

@bvaughn
Copy link
Owner Author

bvaughn commented Feb 10, 2018

Sweet! Thanks for confirming. 👍

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

No branches or pull requests

2 participants