-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
Enabling preventDuplicate causes enque to be ignored during close animation #550
Comments
I'm also facing this issue |
It's been a while, and this issue is really disturbing me. Could anyone from the maintainer confirm and merge the fix? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If preventDuplicate is enabled, calling closeSnackbar and then calling enqueueSnackbar again during the close animation will be ignored.
Expected Behavior
Displayed if enqueueSnackbar is called last when preventDuplicate is enabled.
Current Behavior
Not displayed even if enqueueSnackbar is called last when preventDuplicate is enabled.
Steps to Reproduce
Link:
https://codesandbox.io/s/divine-night-58x2g1?file=/MessageButtons.js:1215-1285
Context
I have a component that uses React.useEffect to keep showing the snackbar as long as the component is mounted, but it no longer works with React 18 + StrictMode. Only developer mode is affected, but I would like to fix it.
Your Environment
The text was updated successfully, but these errors were encountered: