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

findDOMNode is deprecated in StrictMode

Open boatcoder opened this issue 5 years ago • 6 comments

Started a new CRA to and added withSize like so:

export default withSize()(App);

The console is throwing off warnings like this, so Changes they are a coming!

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of SizeMeReferenceWrapper 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 SizeMePlaceholder)
    in SizeMePlaceholder (created by SizeMeRenderer(App))
    in SizeMeReferenceWrapper (created by SizeMeRenderer(App))
    in SizeMeRenderer(App) (created by SizeMe(App))
    in SizeMe(App) (at src/index.js:9)
    in StrictMode (at src/index.js:8)

boatcoder avatar Sep 15 '20 16:09 boatcoder

I have the same issue

Jovan27 avatar Sep 15 '20 18:09 Jovan27

duplicate of #156

moritz-w avatar Sep 16 '20 21:09 moritz-w

This could help? https://medium.com/trabe/getting-rid-of-finddomnode-method-in-your-react-application-a0d7093b2660

Izhaki avatar Mar 05 '21 13:03 Izhaki

Same here

Micheille avatar May 31 '21 21:05 Micheille

Any update on this?

nadysaptra avatar May 09 '22 12:05 nadysaptra

Any update on this?

syuzichachyan avatar Sep 06 '22 16:09 syuzichachyan