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. #187

Open
jctaoo opened this issue Jul 28, 2020 · 1 comment
Open

findDOMNode is deprecated in StrictMode. #187

jctaoo opened this issue Jul 28, 2020 · 1 comment

Comments

@jctaoo
Copy link

jctaoo commented Jul 28, 2020

findDOMNode is deprecated in StrictMode but trigger still uses it.
react version: 16.9.0.

Using findDOMNode will cause below Warning:

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Wave 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 button (created by Button)
    in Wave (created by Button)
    in Button (created by Trigger)
    in Trigger (created by ForwardRef(Tooltip))
    in ForwardRef(Tooltip) (created by Tooltip)
    in Tooltip (created by Popover)
   ...
@sylann
Copy link

sylann commented Apr 30, 2021

Warning about deprecated findDOMNode usage. See react documentation.

ant-design/ant-design#26136

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

2 participants