react-autosuggest icon indicating copy to clipboard operation
react-autosuggest copied to clipboard

Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended

Open jhackett1 opened this issue 4 years ago • 16 comments

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

jhackett1 avatar Dec 09 '21 19:12 jhackett1

I have same problem, did you fix it?

balex777 avatar Dec 28 '21 07:12 balex777

Same here

NataliaLinnik avatar Jan 03 '22 10:01 NataliaLinnik

Same

jaques30081983 avatar Jan 03 '22 10:01 jaques30081983

Alos same, looking forward to the fix.

image

mohqarmout avatar Mar 08 '22 19:03 mohqarmout

Hi! I have the same error

AngyDev avatar Mar 18 '22 17:03 AngyDev

hi there same error How to Solve it ..?

Priyeshnd555 avatar Mar 25 '22 12:03 Priyeshnd555

Same

bryce-by avatar Apr 12 '22 14:04 bryce-by

Any update planned? Same here.

phofmann avatar May 05 '22 15:05 phofmann

Same

tvanbeek avatar May 09 '22 10:05 tvanbeek

Same...

renanfferreira avatar Jun 23 '22 19:06 renanfferreira

2022, this problem is still actual :(

bvfromru avatar Sep 05 '22 10:09 bvfromru

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

v-braun avatar Sep 06 '22 11:09 v-braun

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

Alexis-Castro avatar Sep 26 '22 04:09 Alexis-Castro

same here

yoko-vicky avatar May 28 '23 11:05 yoko-vicky

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

inokawa avatar Jul 22 '23 09:07 inokawa

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

Stephane-Ag avatar Sep 25 '23 21:09 Stephane-Ag