Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send Updates/Events #46

Open
skandabhairava opened this issue Jun 21, 2022 · 3 comments
Open

Send Updates/Events #46

skandabhairava opened this issue Jun 21, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@skandabhairava
Copy link

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

@skandabhairava
Copy link
Author

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??

@zerodevx
Copy link
Owner

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?

@zerodevx zerodevx added the enhancement New feature or request label Jun 21, 2022
@skandabhairava
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants