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
If I use toast.promise, when it changes from loading state to success/error state, it has a smooth scale-in-out animation, and the background color is fade-in-out too.
But if I use id to set an existing toast with loading state to success or others, it is not animated.
The text was updated successfully, but these errors were encountered:
CNSeniorious000
changed the title
Changing state of a toast don't animate the icon
Changing state of a toast using id don't have animations
Jun 28, 2024
After reading the source in state.ts, I found that adding a promise: true to the options can make it animate like toast.promise do. I am thinking whether this can become a default behavior.
Describe the bug
If I use
toast.promise
, when it changes from loading state to success/error state, it has a smooth scale-in-out animation, and the background color is fade-in-out too.But if I use
id
to set an existing toast withloading
state tosuccess
or others, it is not animated.Reproduction
https://stackblitz.com/edit/vitejs-vite-dfaa5m?file=src%2FApp.svelte
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: