missive / emoji-mart

🏪 One component to pick them all
https://missiveapp.com/open/emoji-mart
MIT License
8.67k stars 835 forks source link

unsafe-lifecycles warning. #375

Closed vladanyes closed 4 years ago

vladanyes commented 5 years ago

Hi, thanks for the lib!

I have the following warning in my console:

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: NimblePicker

My package.json: "react": "^16.10.2", "react-dom": "^16.10.2",

johnsenpeder commented 5 years ago

I guess this is a "duplicate" of https://github.com/missive/emoji-mart/issues/356

nolanlawson commented 4 years ago

Yep it's a duplicate, and fixed :)