-
-
Notifications
You must be signed in to change notification settings - Fork 676
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
v6 - Limit number of toasts issue #460
Comments
Hey @coltenkrauter, This seems really weird. May I suggest to delete node_modules and reinstall the dependencies? It works has expected in the codesanbox below. |
@fkhadra I was able to recreate the bug using that CodeSandbox. Just press the If you can't recreate it then I will share a video of me manifesting the bug. |
@coltenkrauter I've been able to reproduce the issue but your really need to click like crazy 🤣. I'll check what is goiing on under the hood. Thanks for reporting the issue |
Thanks! |
@coltenkrauter I found a way to fix the issue. I need to clean the code first and I'll publish the fix in the coming days. |
@fkhadra That's great, thanks!! |
@coltenkrauter I published the rc.1. Normally, |
Excellent! I tested everything and it is working great. Thanks for the speedy turnaround. |
Do you want to request a feature or report a bug?
Report bug
What is the current behavior?
I would expect this to limit to only 5 toasts at a time. But, if I spam the toast button, it will limit to only 5 toasts until one of the toasts time-out and dissappear... At this time the limit seems to not be working and I can display lots of toasts.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:
I think that my description in current behavior is sufficient for someone to recreate the bug.
What is the expected behavior?
I expect for the limit of toasts to work even if the toast button is being spammed.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Mac OS
Chrome
Package versions
The text was updated successfully, but these errors were encountered: