-
-
Notifications
You must be signed in to change notification settings - Fork 298
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. #345
Comments
same here |
I believe this is a Material UI bug, to be precise a bug in Transition component. I have the same problem with MUI Menu component and after browsing came to conclusion that you either need to disable StrictMode or wait until it's fixed in the new version of Material UI. Here is the discussion. |
Is it possible for us to disable the transition via some notistack property until this is fixed? |
this will prevent printing this warn. But be aware of that strict mode helps you find many potential problems. You'd better enable it at least in development |
Duplicate of #257 |
This is a temporary solution. ReactDOM.render( |
Expected Behavior
I've just installed Notistack on my project in React 17. I followed the Getting Started and got this warning/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:
.I would like to avoid removing the Strict Mode.
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: