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

Toast with promise #224

Closed
ak4zh opened this issue Sep 13, 2022 · 1 comment
Closed

Toast with promise #224

ak4zh opened this issue Sep 13, 2022 · 1 comment

Comments

@ak4zh
Copy link
Contributor

ak4zh commented Sep 13, 2022

I really like the overall appearance of https://svelte-french-toast.com/
They also have these promise feature:

toast.promise(
    saveSettings(settings),
    {
       loading: 'Saving...',
       success: 'Settings saved!',
       error: 'Could not save.',
    }
);

Expectations:

  1. Add a similar promise feature
  2. Stack toasts one after another horizontally, currently skeleton just throws all toast at same place on top of each other. Click short toast in the demo multiple times you won’t realise new toasts are appearing as they are just stacked on bottom of existing toast.
@endigo9740
Copy link
Contributor

endigo9740 commented Sep 14, 2022

Would you mind migrating this comment over to this ticket please:
#198

I can review options for extending functionality then. Thanks!

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

No branches or pull requests

2 participants