Skip to content

Dispatch custom events from loaded components #46

@nine-2-five

Description

@nine-2-five

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions