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
{{ message }}
Repository navigation
Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. #3915
react-dom.development.js:530 Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-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://fb.me/react-derived-state
Please update the following components: AutosizeInput, Select
Reacted by John Datserakis, Felipe Lisboa, Karesh, Maximilian, Pubudu Kodikara, Punit Kulal, Raffael Campos, Alex Kondratiuk, Bill Sorensen, Glenn 'devalias' Grant and 21 more
Reacted by John Datserakis, Raffael Campos, Lucas Vieira, Victor Assis, Ville Vainio, Derek Cannon, Teison De oleo Montero, Rogerio Lucio, Rebecca-N77, adenashrudin and 2 more
@razh There is currently a rewrite in progress to remove these deprecated lifecycle methods.
Reacted by Rall3n, Saúl de León Guerrero, Ivo Reumkens, Tracey Wright, Mathias Witte Paz, Valentin Safronov, Eliond, Matthew Ratzloff, Richard Schwabe, Achraf Atauil and 1 more
I'm getting an error, not just a warning.
index.js:1 Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-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://fb.me/react-derived-state
Please update the following components: AutosizeInput, Select
In addition to the above, I am getting this one after I start selecting something:
index.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of NodeResolver which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node
in div (created by Context.Consumer)
in EmotionCssPropInternal (created by MenuList)
in MenuList (created by MenuPlacer)
in ScrollBlock (created by MenuPlacer)
in NodeResolver (created by ScrollCaptor)
in ScrollCaptor (created by ScrollCaptorSwitch)
in ScrollCaptorSwitch (created by MenuPlacer)
in div (created by Context.Consumer)
in EmotionCssPropInternal (created by Menu)
in Menu (created by MenuPlacer)
in MenuPlacer (created by Select)
in div (created by Context.Consumer)
in EmotionCssPropInternal (created by SelectContainer)
in SelectContainer (created by Select)
in Select (created by StateManager)
Reacted by Tamás, Bernt Christian Egeland, Risyandi, Prajil Shrestha , Soberia, Goga Gogoberishvili, Ievgen Naida, Tanveer Singh Taneja, Akshat Gadhwal and Marine0505
Reacted by Goga Gogoberishvili and Tanveer Singh Taneja
Thank you to everyone who has provided information above.
As you may be aware, this bug has been reported multiple times as per issue #4094. On behalf of the maintainers I apologise it's taken awhile to get to this.
A new master issue #4094 has since been created to help keep track of this bug going forward.
This new issue will exist as the source of truth going forward to investigate the issue, report findings, and implement a bug fix.
We'll take into account all the details above while investigating.
If you feel this issue has been wrongly closed as it isn't related to the new master issue #4094, please let us know and we'll take another look.
Again, thank you.
Reacted by Amogh Palnitkar, Patryk Szwed, kelar, Risyandi, Daniel Scott and Eduardo Rezes
Reacted by Greg, khvnkay, ken, Nathan Krasney, Daria, Luis Camacho III, Soberia, Romain LEMBO, Wilco Breedt, Hannah and 17 more
Reacted by Darragh Duffy
Reacted by Abror Khalilov, Alberto Lopez, James Heng, Goga Gogoberishvili, Jeybin M George, Brenda Kiptim, Anupa Rajasinghe, Patrick Longo, Kim Son, AlexKobiliansky and 3 more
* 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: AutosizeInput, Select```
Regarding an update on this, fixes for these issues are a priority. We've identified and resolved these (thanks to @Methuselah96) in the least intrusive ways possible, and are preparing a new release likely within the next week or two. You can read more about it here. #4293 (comment)
Reacted by Bernt Christian Egeland, Oguzhan Demiroz, Akshay, Robert Bracco and Yui Ichioka
Activity
maximilianschmidt commentedon Mar 25, 2020
same error with 3.1.0 for me:
Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your codelucasltv commentedon Apr 1, 2020
For me too! Same warning...
JoeGreen1982 commentedon Apr 2, 2020
Also getting the same error in 3.1.0....
codewhynot commentedon Apr 7, 2020
The same error in 3.1.0
0xdevalias commentedon Apr 22, 2020
See also:
UNSAFE_componentWillReceivePropsMenuPlacer#3720 (comment)
giacintayao commentedon Jun 12, 2020
I'm getting an error, not just a warning.
index.js:1 Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles for details.
Please update the following components: AutosizeInput, Select
gempain commentedon Jun 15, 2020
In addition to the above, I am getting this one after I start selecting something:
bladey commentedon Jun 18, 2020
Hi all,
Thank you to everyone who has provided information above.
As you may be aware, this bug has been reported multiple times as per issue #4094. On behalf of the maintainers I apologise it's taken awhile to get to this.
A new master issue #4094 has since been created to help keep track of this bug going forward.
This new issue will exist as the source of truth going forward to investigate the issue, report findings, and implement a bug fix.
We'll take into account all the details above while investigating.
If you feel this issue has been wrongly closed as it isn't related to the new master issue #4094, please let us know and we'll take another look.
Again, thank you.
JanaSundar commentedon Aug 12, 2020
In version 3.1.0 this warning is shown
Methuselah96 commentedon Aug 12, 2020
@JanaSundar Follow #4094 to get the latest updates on this issue.
junreyd commentedon Sep 1, 2020
Any updates for this bugs?
golendercaria commentedon Dec 12, 2020
I've already bug in new blank project.
ebonow commentedon Dec 12, 2020
@junreyd and @golendercaria
Regarding an update on this, fixes for these issues are a priority. We've identified and resolved these (thanks to @Methuselah96) in the least intrusive ways possible, and are preparing a new release likely within the next week or two. You can read more about it here. #4293 (comment)
fadzrinmadu commentedon Apr 23, 2021
anyone can help me, I got this error too
ebonow commentedon Apr 23, 2021
Greetings @fadzrinmadu ,
This issue was closed with the release of version 4. Can you please confirm which version of react-select you are using?
shopglobal commentedon Apr 28, 2023
for me it's a react 18 dependency mismatch, it could be anything. Update depends in your package.json