-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(query-core): fix combine not updating when queries change with stable reference #9954
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 89db791 The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis PR fixes a bug where a stable Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 89db791
☁️ Nx Cloud last updated this comment at |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9954 +/- ##
===========================================
+ Coverage 45.89% 60.14% +14.25%
===========================================
Files 200 129 -71
Lines 8437 5661 -2776
Branches 1943 1555 -388
===========================================
- Hits 3872 3405 -467
+ Misses 4116 1952 -2164
+ Partials 449 304 -145 🚀 New features to boost your workflow:
|
🎯 Changes
Fixes #8781
Problem
With stable
combine, results lag one step behind when queries change.This happens because
getOptimisticResultruns beforesetQueriesupdatesthis.#result.Solution
Pass
queryHashesto#combineResultto detect query changes beforethis.#resultis updated.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.