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.
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