Skip to content

Replace deprecated / async-unsafe lifecycles #1008

@bvaughn

Description

@bvaughn

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions