-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
bind inside #each block on destructured value #6860
Comments
seems like the input value change not changing the objArray because of the runtime hook |
|
As of 3.51.0, code like this will produce a compile-time warning - https://svelte.dev/repl/761103ad2e254ee0a95454fc82c314c7?version=3.51.0 |
Describe the bug
When using destructuring with spread syntax in an #each block (keyed or not):
The bind fails, and e.g. what you type will be rejected (the value does not update).
Not using destructuring works as expected:
Edit:
Strangely, while testing I noticed that nested values within a rest element functions as expected:
Reproduction
https://svelte.dev/repl/761103ad2e254ee0a95454fc82c314c7?version=3.44.0
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: