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

Dispatch custom events from loaded components #46

Open
nine-2-five opened this issue Jan 5, 2022 · 0 comments
Open

Dispatch custom events from loaded components #46

nine-2-five opened this issue Jan 5, 2022 · 0 comments

Comments

@nine-2-five
Copy link

Hi, any way to connect createEventDispatcher in inner/loaded component to the outer world?

I have this in my Options.svelte component:

<Loadable loader={() => import('./Select.svelte')} {element} on:selectionMade={selectionMade}></Loadable>

In this case Select.svelte dispatches selection event, and I'd like to handle it in Options.svelte, but the Loadable doesn't attach the handler to the inner/loaded Select.svelte.

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

No branches or pull requests

1 participant