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

Get history of Toast #266

Merged
merged 8 commits into from May 23, 2024
Merged

Get history of Toast #266

merged 8 commits into from May 23, 2024

Conversation

dharanish-v
Copy link
Contributor

toast.getHistory() will give the list the toast rendered

closes #176

Copy link

vercel bot commented Dec 24, 2023

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 May 9, 2024 3:47pm

@dharanish-v
Copy link
Contributor Author

can we merge this? @emilkowalski

@emilkowalski
Copy link
Owner

Can we make it a hook that returns active toasts?

const { toasts } = useSonner()

@AlexanderChiclana
Copy link

Can this be merged? Id like to be able to block accidentally sending re-sending toasts which have an ID already in the toast history and don't know if there is another way to do this

@dharanish-v
Copy link
Contributor Author

I am not currently working on this, feel to merge or close

@emilkowalski emilkowalski merged commit d4c5ee7 into emilkowalski:main May 23, 2024
1 check passed
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