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

fix invalidating stores with UpdateExpression #2634

Merged
merged 1 commit into from
May 4, 2019
Merged

Conversation

Conduitry
Copy link
Member

@Conduitry Conduitry commented May 1, 2019

Fixes #2625. Also dries up the invalidation code a bit. It was in fact an imperfect mirroring of the AssignmentExpression branch in the UpdateExpression branch that was causing this bug.

Possible future optimization: Also allow UpdateExpressions to get the single treatment here if they are prefix: true or if we can safely convert them to prefix: true because their value is currently discarded. Never mind, we're further from this than I thought. $foo += 42; also does not currently get optimized this way. Maybe someday.

@Rich-Harris Rich-Harris merged commit 203d0ec into master May 4, 2019
@Rich-Harris Rich-Harris deleted the gh-2625 branch May 4, 2019 03:31
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.

Increment operator (++) not reactive on auto-subscription variable
2 participants