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

findDOMNode is deprecated in StrictMode #199

Open
boatcoder opened this issue Sep 15, 2020 · 6 comments
Open

findDOMNode is deprecated in StrictMode #199

boatcoder opened this issue Sep 15, 2020 · 6 comments

Comments

@boatcoder
Copy link

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)
@Jovan27
Copy link

Jovan27 commented Sep 15, 2020

I have the same issue

@moritz-w
Copy link

duplicate of #156

@Izhaki
Copy link

Izhaki commented Mar 5, 2021

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

@Micheille
Copy link

Same here

@nadysaptra
Copy link

Any update on this?

1 similar comment
@syuzichachyan
Copy link

Any update on this?

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

7 participants