Closed saadjutt01 closed 2 years ago
Same to me @saadjutt01 if you find a solution don't hesitate to let me know
Badly this has no solution but changing this function and replace it with componentDidMount in the source code of the package. So you will have to wait till they update it or you could clone this repo and edit it by yourself then publish it to the npm and use your own library. Edit: I looked at the Pull requests and i found this one resolves this issue PR #49, so you will have to wait till they merge it, hope they do it soon.
Badly this has no solution but changing this function and replace it with componentDidMount in the source code of the package. So you will have to wait till they update it or you could clone this repo and edit it by yourself then publish it to the npm and use your own library. Edit: I looked at the Pull requests and i found this one resolves this issue PR #49, so you will have to wait till they merge it, hope they do it soon.
I did it @YahiaBadr and it works properly in my app. Actually the source updated but they didn't update NPM. I would recommend someone to do this.
Is there any chance we can get a new version with this change in it?
Until they merge PR #49, this is just a warning and can be safely ignored. Won't recommend setting up a custom version of the package yourself for a minor issue like this.
I also tried:
npx react-codemod rename-unsafe-lifecycles
, to remove the warning, but seems like this only affects the source, and not the packages.
Getting this warning !!!
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
Please update the following components: NumericInput