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
Yesterday I was playing with the idea of rendering the promise (loading state) toast when I have some promises ongoing and loading data.
My idea was to show the loading toast when I am loading something but was stuck with the idea because success and fail toasts after promise are required.
Would it be possible (and make sense) to support promise type with having optional success and fail callbacks? So we could display loading promise but not display success/fail one. Not sure how that fits the purpose and API of the library, just putting the idea out there. :)
The text was updated successfully, but these errors were encountered:
frasza
changed the title
Suggestion: promise toast
Suggestion: promise toast without success/fail
Mar 29, 2023
Hey,
Yesterday I was playing with the idea of rendering the promise (loading state) toast when I have some promises ongoing and loading data.
My idea was to show the loading toast when I am loading something but was stuck with the idea because success and fail toasts after promise are required.
Would it be possible (and make sense) to support promise type with having optional success and fail callbacks? So we could display loading promise but not display success/fail one. Not sure how that fits the purpose and API of the library, just putting the idea out there. :)
The text was updated successfully, but these errors were encountered: