react-selectable icon indicating copy to clipboard operation
react-selectable copied to clipboard

React legacy lifecycle method deprecation

Open linuswillner opened this issue 6 years ago • 3 comments

React recently moved forward with its intent to deprecate and eventually remove unsafe lifecycle methods. This includes componentWillReceiveProps, which this component utilises. As such, usage of this component now triggers a warning in React:

Warning

React has some migration directives here: https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#updating-state-based-on-props

linuswillner avatar Aug 12 '19 07:08 linuswillner

Cheers. The whole library should be moved to use hooks, tbh. It's perfectly suited for them.

unclecheese avatar Aug 12 '19 09:08 unclecheese

Any timeline on when this might be resolved? Or anything I could do to help out?

edant92 avatar Sep 30 '19 12:09 edant92

If you submit a PR with the changes, I'll gladly give it a prompt review and merge. :)

unclecheese avatar Oct 06 '19 22:10 unclecheese