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

distinguish between lazy and non-lazy expressions #3147

Merged
merged 2 commits into from
Jul 1, 2019
Merged

Conversation

Rich-Harris
Copy link
Member

This fixes #2693 by drawing a distinction between dependencies that are 'lazy' — e.g., in an event handler like on:click={e => doThing(item)}, we don't need to re-evaluate anything when doThing or item change because we only care about their values when the click event happens — and those that are not, such as in {tags}.

@Rich-Harris Rich-Harris merged commit 73a745b into master Jul 1, 2019
@Rich-Harris Rich-Harris deleted the gh-2693 branch July 1, 2019 15:28
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 this pull request may close these issues.

filtering with store value doesn't trigger re-render
1 participant