You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a situation where I am queuing up a lot of toasts, but limiting my container to only show one at a time. However, I want to be able to remove certain toasts from the queue. So let's say for example I've called toast with 5 separate toast ids 1-5. But some condition happens where ids 3 and 4 haven't yet been rendered, but I no longer want to show those toasts. Is there a way to remove toasts with specific ids from the queue, but letting the other queued toasts show up in the expected order? Essentially, I want to be able to call toast.dismiss before the toast is rendered, to prevent it from ever being rendered.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a situation where I am queuing up a lot of toasts, but limiting my container to only show one at a time. However, I want to be able to remove certain toasts from the queue. So let's say for example I've called
toast
with 5 separate toast ids 1-5. But some condition happens where ids 3 and 4 haven't yet been rendered, but I no longer want to show those toasts. Is there a way to remove toasts with specific ids from the queue, but letting the other queued toasts show up in the expected order? Essentially, I want to be able to calltoast.dismiss
before the toast is rendered, to prevent it from ever being rendered.Beta Was this translation helpful? Give feedback.
All reactions