Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

componentWillReceiveProps dprecated #15

Open
okansarica opened this issue Sep 15, 2020 · 1 comment · May be fixed by #19
Open

componentWillReceiveProps dprecated #15

okansarica opened this issue Sep 15, 2020 · 1 comment · May be fixed by #19

Comments

@okansarica
Copy link

componentWillReceiveProps is deprecated and getting warnings for it
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

@bhs324
Copy link

bhs324 commented Nov 26, 2020

From react 16.13, the following warning also occurs.
Warning: Cannot update a component from inside the function body of a different component.
Please see these new warnings

@bhs324 bhs324 linked a pull request Nov 27, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants