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.

Address "Unsafe lifecycle methods were found within a strict-mode tree" warnings

See original GitHub issue

Any plans to replace componentWillReceiveProps in the DatePicker and Calendar components as this lifecycle will be depracated in react v16.4? react-lifecycles-compat is another option.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
aijcommented, Apr 24, 2018

To be clear, componentWillMount, componentWillReceiveProps, and componentWillUpdate are already deprecated in 16.3. They will continue to be supported until 17.0.

Deprecation warnings will be enabled during some future release – not necessarily 16.4 AFAICT.

Anyway, we should plan to upgrade, but doing so will most likely involve dropping support for React <16.3.

0reactions
stale[bot]commented, Aug 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unsafe lifecycle methods were found within a strict-mode tree ...
React's strict mode (flags deprecating APIs) throws warnings in development of using the componentWillReceiveProps method, and recommends ...
Read more >
Strict Mode - React
As explained in this blog post, certain legacy lifecycle methods are unsafe for use in async React applications. However, if your application uses...
Read more >
Using strict mode in React 18: A guide to its new behaviors
Introduction to React's strict mode; Warnings on the use of unsafe lifecycle methods; Recommending the createRef API over the legacy string ...
Read more >
please update the following components: sideeffect(nullcomponent2 ...
Warning : Unsafe lifecycle methods were found within a strict-mode tree: componentWillMount: Please update the following components to use componentDidMount ...
Read more >
“The editor has encountered an unexpected error ...
react-dom.js?ver=16.8.4:500 Warning: Unsafe lifecycle methods were found within a strict-mode tree: in StrictMode (created by Editor) in Editor (created by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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