-
Notifications
You must be signed in to change notification settings - Fork 334
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
Add persistent toasts #36
Comments
Would |
Just tried. Toast won't even show. I tried both my custom toast and default one. |
You are right. That's weird. I'll look into this. Edit: This is why: denysdovhan/wtfjs#61 (comment) Will try to find a different solution, as this seems like a valid use case. |
Does |
@timolins I think it would be better to just do |
Thanks for the feedback! I agree with you, using Infinity seems like the more intuitive API. Will update and merge the PR :) |
Sometimes we need to show toast until it's dismissed by user or programmatically. E. g. connection lost and notification is shown until it's back online. Or some long or slow process happens.
It is not always possible to use
toast.promise
for that. Currently I use very long duration to simulate persistent toast.Is it possible to add persistent toast, which doesn't have any timers inside them? Then it would possible to do:
The text was updated successfully, but these errors were encountered: