kaisermann / kaisermann/svelte-loadable
Dispatch custom events from loaded components
- Dominant language
- Svelte
- Stars
- 321
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Hi, any way to connect createEventDispatcher in inner/loaded component to the outer world?
I have this in my `Options.svelte` component:
` import('./Select.svelte')} {element} on:selectionMade={selectionMade}>`
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with Options.svelte and the Loadable usage shown in the issue, then inspect how the loaded Select.svelte component handles the selectionMade event. Confirm the desired behavior by reproducing the example and verify that the outer handler receives the inner component's event.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100