zerodevx/svelte-toast

Send Updates/Events

skandabhairava opened this issue · 3 comments

How would I send custom events from my custom notification component, and how do I receive it from my main component? Thanks in advance!

I mean, we can close the toast when u click on a button, and check if the toast has been popped from the main component, but is there a better way to do that where we can send multiple events??

Yup, there are some use-cases (like event dispatching/forwarding) that will be better handled in the next major release. There's been tons of changes to Svelte, particularly in features and patterns, since this repo was first released. 😦

Meanwhile, does the onpop() callback help your use-case?

Yup, it does satisfies my use case! Thanks a lot man :D