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 deprecated in StrictMode. #161

Open
1 of 3 tasks
rajohan opened this issue Apr 7, 2021 · 3 comments
Open
1 of 3 tasks

findDOMNode deprecated in StrictMode. #161

rajohan opened this issue Apr 7, 2021 · 3 comments

Comments

@rajohan
Copy link

rajohan commented Apr 7, 2021

Please select the type of issue you're reporting.

  • Bug
  • Feature Request
  • Question

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

@Obsserver
Copy link

any updates on this ?

@PoetaKodu
Copy link

Same problem.

@eoussama
Copy link

eoussama commented Sep 17, 2023

Pass a reference to the draggable component.
There is an example here: eoussama/eo-textdraw-editor@2c5c0d7

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

4 participants