reachtokish / rctx-contextmenu

:bowtie: :sparkles: Context menu for React
https://reachtokish.github.io/rctx-contextmenu/
66 stars 14 forks source link

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of t which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node #38

Closed zdwork closed 1 year ago

zdwork commented 1 year ago

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of t which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node

abhicoditation commented 1 year ago

Same Issue, any fixes?

reachtokish commented 1 year ago

Thanks for creating the issue.

rctx-contextmenu uses react-transition-group for animations and what I found is that react-transition-group uses object-assign which uses findDOMNode internally. Which is causing the issue. For time being kindly remove StrictMode from your project to unblock yourself.

I will try to see an alternative of react-transition-group

reachtokish commented 1 year ago

This is resolved. Kindly use the latest version (1.4.1). Closing the ticket. Kindly open if it still exist