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

Support for object-rest in each destructuring #2647

Closed
mindrones opened this issue May 1, 2019 · 1 comment · Fixed by #2664
Closed

Support for object-rest in each destructuring #2647

mindrones opened this issue May 1, 2019 · 1 comment · Fixed by #2664

Comments

@mindrones
Copy link
Member

mindrones commented May 1, 2019

It'd be nice to be able to do:

{#each sections as {type, ...props}}
  <svelte:component this={foo[type]} {...props} />
{/each}

as an alternative to:

{#each sections as section}
  <svelte:component this={foo[section.type]} {...section} />
{/each}
@EmilTholin
Copy link
Member

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

Successfully merging a pull request may close this issue.

3 participants