sonner icon indicating copy to clipboard operation
sonner copied to clipboard

Get history of Toast

Open dharanish-v opened this issue 1 year ago • 5 comments

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

closes #176

dharanish-v avatar Dec 24 '23 13:12 dharanish-v

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

vercel[bot] avatar Dec 24 '23 13:12 vercel[bot]

can we merge this? @emilkowalski

dharanish-v avatar Jan 07 '24 16:01 dharanish-v

Can we make it a hook that returns active toasts?

const { toasts } = useSonner()

emilkowalski avatar Jan 14 '24 19:01 emilkowalski

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

AlexanderChiclana avatar May 08 '24 19:05 AlexanderChiclana

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

dharanish-v avatar May 09 '24 15:05 dharanish-v