You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using the react-select v2 Async Select component there is a warning being rendered in the devtools regarding the use of componentWillRecieveProps, which has been updated and renamed in the new Updates in ReactJs.
The warning is
Warning: componentWillReceiveProps has been renamed, and is not recommended for use.
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.
Can we update the files of the async and select folder present in the node_modules because it needs to be updated as per the new code structure in ReactJs
The text was updated successfully, but these errors were encountered:
While using the react-select v2 Async Select component there is a warning being rendered in the devtools regarding the use of componentWillRecieveProps, which has been updated and renamed in the new Updates in ReactJs.
The warning is
Warning: componentWillReceiveProps has been renamed, and is not recommended for use.
npx react-codemod rename-unsafe-lifecycles
in your project source folder.Can we update the files of the async and select folder present in the node_modules because it needs to be updated as per the new code structure in ReactJs
The text was updated successfully, but these errors were encountered: