-
Notifications
You must be signed in to change notification settings - Fork 363
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 deprecated in StrictMode. #161
Comments
any updates on this ? |
Same problem. |
Pass a reference to the draggable component. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please select the type of issue you're reporting.
Problem Report
Using react-resizable in react v17.0.2 inside ReactStrictMode throws a warning because findDOMNode is deprecated in StrictMode.
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of DraggableCore which is inside StrictMode. Instead, add a ref directly to the element you want to reference
System Info
Node Version: v15.8.0
Browser: Google Chrome Canary Version 91.0.4450.0
OS: Windows 10
Reproduction
https://codesandbox.io/s/react-resizable-playground-forked-d8n7k?file=/src/index.js:3792-3809
The text was updated successfully, but these errors were encountered: