question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrate to new lifecycle methods

See original GitHub issue

React 16.3 will introduce a StrictMode which will fires deprecation warnings for componentWillMount, componentWillUpdate, componentWillReceiveProps. We should migrate antd’s components to the new API, ~react-af can be a good start.~

Here is a todo list, if you have interest in helping, drop a comment below.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:82
  • Comments:107 (59 by maintainers)

github_iconTop GitHub Comments

28reactions
afc163commented, Nov 9, 2019

In favor of react-component/form#355 and react-component/animate#82, we finally fixed all react lifecycle warnings!!! ✌️😊🎉 There is no warnings anymore now, thx to all contributors and your effects have made in this issue. 🤝

图片

ref https://github.com/ant-design/ant-design/pull/19643

19reactions
N00nDaycommented, Sep 8, 2019

Animate is also throwing this error

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating From Unsafe React Lifecycle Hooks. - Medium
New lifecycle : getSnapshotBeforeUpdate​​ Together with componentDidUpdate , this new lifecycle should cover all use cases for the legacy ...
Read more >
Explain new lifecycle methods in React v16.3 - GeeksforGeeks
React 16.3 has introduced two new lifecycle methods: getDerivedStateFromProps(); getSnapshotBeforeUpdate(). Creating a React Application: Step 1 ...
Read more >
React lifecycle methods: An approachable tutorial with examples
Learn all about React lifecycle methods for mounting, updating, unmounting, and error handling, including new methods as of React 17.
Read more >
React v16.3.0: New lifecycles and context API
A few days ago, we wrote a post about upcoming changes to our legacy lifecycle methods, including gradual migration strategies.
Read more >
Migrating to the new React Lifecycle methods - Tubi Engineering
In this post, we share learnings on migrating our React Component life cycle methods. As part of v16. 3.0, the React team will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found