-
-
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
Store object binding on component #7106
Comments
It shouldn't log anything. There is absolutely no reason for Svelte to call |
Aren't you assigning this : {id: 1, name: 'tab1'} , and you are right I changed it to [{id: 1, name: 'tab1'},{id: 2, name: 'tab2'},{id: 3, name: 'tab3'}] and it logs three times in a loop and it means the cause of triggering is "binding" not assignment |
Yes, part of the confusion is that I edited the REPL instead of forking it. The original REPL was using To be clear: |
Dup : #6298 |
Describe the bug
Binding nested object of a store -on component- causes an extra reactivity call (at initialization once)
Ver: 3.44.3
Reproduction
https://svelte.dev/repl/3aa2f6b4f5c844748c34cca5ea8d4b02
Logs
No response
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: