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

Warning: findDOMNode is deprecated in StrictMode. #465

Closed
bharadhwaj opened this issue Apr 2, 2020 · 2 comments
Closed

Warning: findDOMNode is deprecated in StrictMode. #465

bharadhwaj opened this issue Apr 2, 2020 · 2 comments

Comments

@bharadhwaj
Copy link

I am getting an error when I am trying to use Draggable,

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Draggable 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

Seems like an error inside the library code for me, and not very sure is there anything I can do to solve the error in my end?

I am using uncontrolled Draggable component.

Any help is appreciated.

@ricardo-jsx
Copy link

I believe that this comment may help you: raatmarien/playcardswith.me#56 (comment)

TL;DR: This warning comes from <React.StrictMode /> and, for now, it hasn't caused any unexpected behavior and the only way to remove it is to remove from your project React.StricMode /> itself.

@STRML
Copy link
Collaborator

STRML commented Apr 10, 2020

Duplicate of #440. Accepting PRs but I don't have the time to fix this properly yet.

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

3 participants