-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Reactivity doesn't work for store with nested array when referenced by $ #6765
Comments
That's weird, it works for me in this REPL I just created because I'm opening an issue shortly about another problem I had about similar objects being updated in a store even though I'm only binding one. I have svelte |
The reproduction REPL is using an old version of Svelte: https://svelte.dev/repl/4bc891afdcf543d482ca1a14d2d23fc4?version=3.20.1 Change the version to So I think this is a bug that's already been fixed and you're just using a version of Svelte from before the bug was fixed. |
Indeed, this was fixed a year ago in 3.25.0, and sounds like #5286. Please only open issues about the current version of Svelte. |
Doh!, Sorry about that. Maybe adding a banner to repl when not on the latest version would stop dolts like me wasting everyone's time. |
Describe the bug
Reactivity is broken for a store that is an object with a nested array eg: store = writable({arr: [{a: 1}]) if that array is referenced by the store $ notation eg {#each $store.arr as item}
replacing $ with get works as expected eg: {#each get(store).arr as item}
Reproduction
https://svelte.dev/repl/4bc891afdcf543d482ca1a14d2d23fc4?version=3.20.1
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: