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

Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended #835

Open
jhackett1 opened this issue Dec 9, 2021 · 16 comments

Comments

@jhackett1
Copy link

In a new React app running version 17.0.2, I get a console error when using this component:

Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/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://reactjs.org/link/derived-state

Please update the following components: Autosuggest, Autowhatever
@balex777
Copy link

I have same problem, did you fix it?

@NataliaLinnik
Copy link

Same here

@jaques30081983
Copy link

Same

@mohqarmout
Copy link

Alos same, looking forward to the fix.

image

@AngyDev
Copy link

AngyDev commented Mar 18, 2022

Hi! I have the same error

@Priyeshnd555
Copy link

hi there same error How to Solve it ..?

@bryce-by
Copy link

Same

@phofmann
Copy link

phofmann commented May 5, 2022

Any update planned? Same here.

@tvanbeek
Copy link

tvanbeek commented May 9, 2022

Same

@renanfferreira
Copy link

Same...

@bvfromru
Copy link

bvfromru commented Sep 5, 2022

2022, this problem is still actual :(

@v-braun
Copy link

v-braun commented Sep 6, 2022

2022, this problem is still actual :(

This issue was opened in Dec 2021, the last commit was in Jan 2021 (one year before this issue was created).
I don't think that this will be solved, looks like this project is dead :-(

@Alexis-Castro
Copy link

Alexis-Castro commented Sep 26, 2022

It seems that the problem is React strict mode, I currently work with version 18.2. So when you comment or delete the warning no longer appears:
Code_2hKHMXRV4y

@yoko-vicky
Copy link

same here

@inokawa
Copy link

inokawa commented Jul 22, 2023

Hi,
https://github.com/inokawa/rich-textarea may help if you want to build a customized textarea with suggestion.

@Stephane-Ag
Copy link

This package is not being maintained anymore. This is also a very old issue #624 .

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

No branches or pull requests