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

Warning: findDOMNode is deprecated in StrictMode. #1

Open
drusepth opened this issue Dec 28, 2020 · 0 comments
Open

Warning: findDOMNode is deprecated in StrictMode. #1

drusepth opened this issue Dec 28, 2020 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@drusepth
Copy link
Member

Bug: The first time you hover over any element on the page that contains a tooltip with the Zoom transition, the browser console shows the following error:

index.js:1 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://reactjs.org/link/strict-mode-find-node
    at div
    at Transition (https://localhost:3000/static/js/0.chunk.js:67610:30)
    at Zoom (https://localhost:3000/static/js/0.chunk.js:9111:24)
    at div
    at Portal (https://localhost:3000/static/js/0.chunk.js:6135:24)
    at Popper (https://localhost:3000/static/js/0.chunk.js:5814:24)
    at Tooltip (https://localhost:3000/static/js/0.chunk.js:8032:28)
    at WithStyles(ForwardRef(Tooltip)) (https://localhost:3000/static/js/0.chunk.js:13092:31)
    at span
    at div
    at div
    at BadgeHighlighter (https://localhost:3000/static/js/main.chunk.js:730:5)
    at div
    at Grid (https://localhost:3000/static/js/0.chunk.js:3372:35)
    at WithStyles(ForwardRef(Grid)) (https://localhost:3000/static/js/0.chunk.js:13092:31)
    at div
    at Container (https://localhost:3000/static/js/0.chunk.js:2301:23)
    at WithStyles(ForwardRef(Container)) (https://localhost:3000/static/js/0.chunk.js:13092:31)
    at App (https://localhost:3000/static/js/main.chunk.js:279:5)

We're specifying the Zoom transition as the Material-UI docs recommend. According to this StackOverflow question, it looks like a Material-UI problem; however, I'm still new to React so I don't understand how to incorporate the solutions.

It'd be nice to resolve this issue without removing StrictMode. Material-UI will eventually fix it in a future release, but it'd also be nice to have a solution in place in the meantime.

@drusepth drusepth added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant