-
-
Notifications
You must be signed in to change notification settings - Fork 326
Loading state of a toast isn't removed when using toast() with the same ID of the toast.loading() #401
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
Comments
You can remove the loading toast using |
This will dismiss the whole toast, while I just wanted to dismiss the loading spinner. My expectation was, that calling |
it's working now |
Enhancement Suggestion |
I've tested it with version 2.0.3 and I still have the same behaviour as I described. |
@webdevelukas |
Uh oh!
There was an error while loading. Please reload this page.
Describe the feature / bug 📝:
If I create a toast with
toast.loading('loading', { id: 'test' })
and I later calltoast('not loading anymore', { id: 'test' })
which for my expectation should remove the loading state from the toast. It doesn't do that. It just switches the text, but it stays in the loading state. I want to do it like this because I just want to show a "neutral" toast when the loading is finished and I don't want to use atoast.success
or something similar because of the styling.Steps to reproduce the bug 🔁:
I've tested it in v1.4.0 and the latest v1.4.41
The text was updated successfully, but these errors were encountered: