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

Replace componentWillReceiveProps with componentDidUpdate to fix warnings on react 16.8

Open jeancx opened this issue 5 years ago • 3 comments

closes #195

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-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://fb.me/react-derived-state
    * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.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: AutosizeInput, TagsInput

More info: https://pt-br.reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops

jeancx avatar Jan 16 '20 17:01 jeancx

Hi, is there any plan to merge this?

lourenci avatar Feb 29 '20 01:02 lourenci

@lourenci looks like this repo is abandoned @olahol are you alive?

kirill-dev-pro avatar Apr 07 '20 08:04 kirill-dev-pro

@jeancx shall we fork this and publish independently?

lorenzopolidori avatar Sep 14 '20 08:09 lorenzopolidori