sonner
sonner copied to clipboard
Get history of Toast
toast.getHistory() will give the list the toast rendered
closes #176
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 |
can we merge this? @emilkowalski
Can we make it a hook that returns active toasts?
const { toasts } = useSonner()
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
I am not currently working on this, feel to merge or close