-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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(vue-query): avoid use sync
for watch
that cause unnecessary requests
#8443
base: main
Are you sure you want to change the base?
Conversation
queryKey
match the current value of ref used insidequeryKey
match the current value of ref used inside
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 0452035. 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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8443 +/- ##
===========================================
+ Coverage 46.21% 71.01% +24.80%
===========================================
Files 198 19 -179
Lines 7509 483 -7026
Branches 1710 136 -1574
===========================================
- Hits 3470 343 -3127
+ Misses 3664 110 -3554
+ Partials 375 30 -345
|
queryKey
match the current value of ref used insidesync
for watch
that cause unnecessary requests
Linked issue
enabled
#5996Description
In PR #7942, attempting to change
watch
's{ flush: 'sync' }
to{ flush: 'post' }
or removing it might lead to the same issues as #5910 and #5996.This PR removes
{ flush: 'sync' }
and ensures proper handling ofrefresh
to prevent the issue in #5910 wherequeryKey
retrieves stale data.If there are any considerations I may have missed, please kindly let me know. Thank you!