Open thibault60000 opened 8 months ago
If you're using SvelteKit, you can hook onto beforeNavigate()
, something like:
import { beforeNavigate } from '$app/navigation'
import { toast } from '@zerodevx/svelte-toast'
beforeNavigate(() => toast.pop(0))
Hi, I want to close a Toast used for confirmation with
toast.push({ component: {...})
How it's possible to close toast if user page changed ? For now, toast persist..
Thanks :)