-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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(query-core): don't finalizeThenable of different queries #8171
Conversation
if we have multiple promises in-flight, once they resolve, we need to make sure to not finalize with data / error from a different key; otherwise, we might see intermediate data of non-matching keys
☁️ Nx Cloud ReportCI is running/has finished running commands for commit a4a2cf7. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8171 +/- ##
===========================================
+ Coverage 45.41% 62.09% +16.68%
===========================================
Files 200 136 -64
Lines 7456 4757 -2699
Branches 1696 1335 -361
===========================================
- Hits 3386 2954 -432
+ Misses 3694 1563 -2131
+ Partials 376 240 -136 |
this makes sure we can read stale data from entries when switching to them immediately
if we have multiple promises in-flight, once they resolve, we need to make sure to not finalize with data / error from a different key; otherwise, we might see intermediate data of non-matching keys