wobsoriano/svelte-sonner

Updating loading toast is dismissed instantly

Closed this issue · 2 comments

toast.loading('Loading...')

How to Stop this toast

You will need to update the toast:

const id = toast.loading('Please wait...')

setTimeout(() => {
	toast.success('Success!', { id })
}, 3000)

However, during testing, I also encountered this bug - - emilkowalski/sonner#201

Thanks 😊