react-numeric-input icon indicating copy to clipboard operation
react-numeric-input copied to clipboard

Deprecation warning for incoming React 17

Open sergentn opened this issue 6 years ago • 7 comments

Hi, After updating React to 16.9.0, I am getting these warnings in Firefox:

Deprecation Warning

By the way, is this project still active ? Thanks,

sergentn avatar Sep 25 '19 12:09 sergentn

By the way, is this project still active ?

Does not look like this :(

burtek avatar Dec 12 '19 22:12 burtek

It's inactivate, I think. But I'm interested in maintain it Contact me if anyone else already have some progress.

DragonChen-TW avatar Dec 15 '19 09:12 DragonChen-TW

Do you know of any maintained fork?

AntonOellerer avatar Feb 18 '20 16:02 AntonOellerer

Fyi, I just moved to the normal html <input type="number">

AntonOellerer avatar Feb 25 '20 22:02 AntonOellerer

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.

  • Move data fetching code or side effects to componentDidUpdate.
  • If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
  • Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run npx react-codemod rename-unsafe-lifecycles in your project source folder.

Please update the following components: NumericInput

It would be very easy to fix this warning.

Simply Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps in line 410 of this file

stahlmanDesign avatar Aug 11 '21 03:08 stahlmanDesign

this project seems dead at this point...

burtek avatar Sep 23 '21 07:09 burtek

Anyone with a managed fork containing this fix? This issue will become even more problematic when upgrading to the newly released React 18...

bflamand avatar Apr 29 '22 17:04 bflamand