Skip to content

Dynamic attributes on component not updating when spread is used #4381

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
jedwood opened this issue Feb 6, 2020 · 2 comments
Closed

Dynamic attributes on component not updating when spread is used #4381

jedwood opened this issue Feb 6, 2020 · 2 comments

Comments

@jedwood
Copy link

jedwood commented Feb 6, 2020

Describe the bug
If spread is used to pass props to a component, dynamic attributes declared on that component instance don't update.

To Reproduce
https://svelte.dev/repl/7e5434ce8ef14aa5be4060dc873107e2?version=3.18.1

Expected behavior
Attribute value should update on the component when using spread for the props.

Information about your Svelte project:

  • Svelte version 3.18.1
  • Rollup

Severity
Just annoying, as it requires less concise code and is unexpected/broken

@Conduitry
Copy link
Member

Sounds like a duplicate of #3521.

@jedwood
Copy link
Author

jedwood commented Feb 6, 2020

Ah, yep- sorry I missed that.

@jedwood jedwood closed this as completed Feb 6, 2020
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