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

Extra Invalidation #4499

Closed
TerryRPatterson opened this issue Mar 2, 2020 · 2 comments
Closed

Extra Invalidation #4499

TerryRPatterson opened this issue Mar 2, 2020 · 2 comments

Comments

@TerryRPatterson
Copy link

Describe the bug
When doubling binding to a value that is derived from a prop, the code that updates the double binding also invalidates the prop.

To Reproduce
https://svelte.dev/repl/4d808dfa0c464af0988414a0885b4086?version=3.19.1

Line 75 of the JS Output show it incorrectly invalidating the prop, even though the prop is never assigned to the value.

Expected behavior
The prop should not be invalidated as it does not depend upon the value.

Information about your Svelte project:

  • Svelte version: 3.19.1

Severity
At the moment I am able to work around it by making a copy of the data higher in the component tree, where the prop is not double bound to.

@pushkine
Copy link
Contributor

pushkine commented Mar 2, 2020

related #4448

@TerryRPatterson
Copy link
Author

Yep that appears to be the same bug.

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

2 participants