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

Add hooks to show active toasts #347

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

rizqitsani
Copy link
Contributor

Issue 😱:

Closes #176

What has been done βœ…:

  • Create useSonner hooks that returns active toasts
  • Modify removeToast function to use ToastState.dismiss so that we have single source of truth

Screenshots/Videos πŸŽ₯:

use-sonner.mp4

Copy link

vercel bot commented Feb 22, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
sonner βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 22, 2024 11:02am

@emilkowalski emilkowalski merged commit 42400e9 into emilkowalski:main Feb 23, 2024
2 checks passed
@AlexanderChiclana
Copy link

I dont believe this hook is currently in production @emilkowalski

@rizqitsani rizqitsani deleted the feat/toast-list-hook branch May 16, 2024 09:11
@rizqitsani rizqitsani mentioned this pull request May 16, 2024
1 task
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

Successfully merging this pull request may close these issues.

How to get toast list?
3 participants