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

Two-way binding within an #each over a store property breaks reactivity #5286

Closed
nosideeffects opened this issue Aug 18, 2020 · 1 comment · Fixed by #5289
Closed

Two-way binding within an #each over a store property breaks reactivity #5286

nosideeffects opened this issue Aug 18, 2020 · 1 comment · Fixed by #5289

Comments

@nosideeffects
Copy link

nosideeffects commented Aug 18, 2020

Describe the bug
Binding to a property of an #each block item does not initiate a re-render when the property is updated, if the list being looped over is within a store. The same logic using a value outside of a store works as expected.

To Reproduce
Example in REPL

Expected behavior
I would expect the store version to mimic the behaviour of the non-store version.

Information about your Svelte project:

  • Firefox 78.0.1
  • Svelte 3.24.1
  • Rollup

Severity
Can be worked around easily in most scenarios, once you understand that reactivity works as expected if you do not use a store value.

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

Successfully merging a pull request may close this issue.

2 participants