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 is deprecated in StrictMode #1404

Closed
yanai101 opened this issue Jun 10, 2020 · 3 comments
Closed

findDOMNode is deprecated in StrictMode #1404

yanai101 opened this issue Jun 10, 2020 · 3 comments

Comments

@yanai101
Copy link

this is the error message that I have in the console: (using ts )

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition 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
    in div (created by GrowlMessage)
    in GrowlMessage (created by Growl)
    in Transition (created by CSSTransition)
    in CSSTransition (created by Growl)
...

this is a code sandbox:
https://codesandbox.io/s/vibrant-haze-pxqw6

the error is trigger when the Message/ Growl component change is inside state ...

Thanks

@ckay2003
Copy link

Seems to happen in multiple components. I get this message when using a calendar as a custom editor in datatable

@mertsincan
Copy link
Member

Hi,

It is a warning, not an error. Also, this issue is related to transition API. Please see; reactjs/react-transition-group#429

Also, facebook/react#9217 (comment)

@mertsincan
Copy link
Member

Hi,

Fixed in #1790

Best Regards,

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