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

Unexpected invalidation when dynamically adding components #4519

Closed
keithclark opened this issue Mar 6, 2020 · 1 comment
Closed

Unexpected invalidation when dynamically adding components #4519

keithclark opened this issue Mar 6, 2020 · 1 comment

Comments

@keithclark
Copy link

Describe the bug
I'm getting an unexpected state validation when dynamically adding a svelte component that has a binding.

To Reproduce

  1. Visit https://svelte.dev/repl/7f7facd7f6054862b68201d134fbdfc7?version=3.19.2
  2. Click any of the "edit" buttons.
  3. $: reactiveLog(data) is incorrectly re-evaluated (note the counter increases). None of the data object properties are changed as a result of clicking the button.

Expected behavior
reactiveLog(data) should not be called unless data is modified.

@pushkine
Copy link
Contributor

pushkine commented Mar 6, 2020

duplicate #4447

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

3 participants