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

FIX ReactDOM.findDOMNode() is deprecated caused by Draggable #38

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

Charlie-XIAO
Copy link
Contributor

Since we wrap in React.StrictMode in dev mode for debugging, Draggable causes a deprecation warning as described in the title with the latest version of React that we are using. The PR implemented the fix mentioned in the changelog of Draggable.

@Charlie-XIAO Charlie-XIAO added the bug Something isn't working label Apr 19, 2024
@rz2606
Copy link
Contributor

rz2606 commented Apr 19, 2024

I didn't encounter this bug on Windows 11.

Copy link
Contributor

@ROMEEZHOU ROMEEZHOU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not get the warning. I am using Mac with M2, macOS Sonoma 14.4.1

Copy link
Contributor

@rz2606 rz2606 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't encounter this warning on Windows 11. These changes seem to address the deprecation warning caused by Draggable in React.StrictMode by properly setting up the nodeRef for Draggable and referencing it in the container component. Overall, it looks good!

@rz2606 rz2606 merged commit 52865fa into main Apr 19, 2024
7 checks passed
@rz2606 rz2606 deleted the fix-draggable-depr branch April 19, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants