Skip to content

Dynamic Named Slots not supported. #5859

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

Closed
azizahmedkhankkz opened this issue Jan 5, 2021 · 1 comment
Closed

Dynamic Named Slots not supported. #5859

azizahmedkhankkz opened this issue Jan 5, 2021 · 1 comment

Comments

@azizahmedkhankkz
Copy link

Describe the bug
When we try to assign name to the slot dynamically, we are not able to do so as it says ' name can not be dynamic'.

To Reproduce
https://svelte.dev/repl/e1f35989fecb4d4ea828db4b6b249a5c?version=3.5.1

Expected behavior
Slot name should be assigned dynamically such as in {#each} blocks.

Severity
We are making a component library using svelte; if this issue persists we have a feature in which by supplying data to named slots the layout changes. For that feature this is a blocker.

@Conduitry
Copy link
Member

This isn't a bug, it's a lack of a feature, as the error message you got indicates. This sounds like something there would be a lot of nuance about how it would work and how it would interact with other features. To that end, if you can give specific and detailed requirements of what you're looking for, please open an RFC in the 'rfcs' repo.

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

2 participants