svelte-french-toast
svelte-french-toast copied to clipboard
improvement to toast.promise
This PR aims to solve the following issues for toast.promise
-
support dynamic toast message based on promise's result, fallback to the static message provided initially
-
handle edge case where
toast.loading
has been set with{duration: Infinity}
, andtoast.success
andtoast.error
will not go away as well
The only thing that I am not sure is why is resolveValue
function used there previously.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated |
---|---|---|---|---|
svelte-french-toast | ✅ Ready (Inspect) | Visit Preview | 💬 Add your feedback | Feb 8, 2023 at 9:38PM (UTC) |
@kbrgl what do you think about this?