Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: promise toast without success/fail #4

Open
frasza opened this issue Mar 29, 2023 · 1 comment
Open

Suggestion: promise toast without success/fail #4

frasza opened this issue Mar 29, 2023 · 1 comment
Labels

Comments

@frasza
Copy link

frasza commented 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. :)

@frasza frasza changed the title Suggestion: promise toast Suggestion: promise toast without success/fail Mar 29, 2023
@wobsoriano
Copy link
Contributor

I'd just render a headless toast 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants