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

Strict Mode Warning #9

Open
RussMax783 opened this issue Aug 27, 2020 · 3 comments
Open

Strict Mode Warning #9

RussMax783 opened this issue Aug 27, 2020 · 3 comments

Comments

@RussMax783
Copy link

Nice work on such a simple component!

With all the latest of React and this library there is a warning when a snackbar gets toggle on.
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of n 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

Quick sandbox to show the error.
https://codesandbox.io/s/react-simple-snackbar-broken-9m9lm?file=/src/App.js

@juspky
Copy link

juspky commented Sep 16, 2020

This is caused by react-transition-group
reactjs/react-transition-group#668

Bump the dep once this is is fixed

@juspky
Copy link

juspky commented Sep 27, 2020

reactjs/react-transition-group#668 (comment)

this needs to be done.
@evandromacedo

@architgarg
Copy link

I had the same problem. Now started using this - https://react-hot-toast.com/

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