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

findDOMNode is deprecated in StrictMode - error

Open CarelessCourage opened this issue 3 years ago • 7 comments

Im getting this error with the combobox.

react_devtools_backend.js:4026 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition2 which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here:

image

CarelessCourage avatar Nov 10 '22 21:11 CarelessCourage

Odd, I just came across this too with <DropdownList>. Similar stack trace, however it's mentioned in #928 that it's closed as fixed? No commit mentioned though and it was back in 2021 so it should have already been pushed.

bt avatar Nov 29 '22 14:11 bt

This is due to react-transition-group, I am going to try and work around it without breaking changes :/

jquense avatar Nov 29 '22 16:11 jquense

This is due to react-transition-group, I am going to try and work around it without breaking changes :/

Thanks for the quick reply. Would you mind sharing roughly what code uses this and maybe I'll have a look to see if I can help when I'm free?

bt avatar Dec 01 '22 04:12 bt

You can search in the repo, but probable the SlideDownTransition component specifically

jquense avatar Dec 01 '22 14:12 jquense

It looks like they may have added a workaround: https://github.com/reactjs/react-transition-group/blob/master/CHANGELOG.md#440-2020-05-05

quinn avatar Jan 04 '23 04:01 quinn

It looks like they may have added a workaround: https://github.com/reactjs/react-transition-group/blob/master/CHANGELOG.md#440-2020-05-05

how to add the useRef hook to the Combobox component to fix the same issue? @quinn

FlashAmarillo avatar Jul 25 '23 17:07 FlashAmarillo

running into this issue. any updates?

robahtou avatar Mar 22 '24 19:03 robahtou