-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat: refetchMode replace for streamedQuery #9092
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
Conversation
View your CI Pipeline Execution ↗ for commit 0de0222.
☁️ Nx Cloud last updated this comment at |
context.client.setQueryData<Array<TQueryFnData>>( | ||
context.queryKey, | ||
(prev = []) => { | ||
return prev.concat([chunk]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- return prev.concat(chunk)
+ return prev.concat([chunk])
this tiny change is hard to see, but it fixes an issue where TQueryFnData
is in itself an array, which got flattened implicitly by concat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a test for this, too: 0de0222
Sizes for commit 0de0222:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9092 +/- ##
===========================================
+ Coverage 44.56% 59.05% +14.49%
===========================================
Files 203 138 -65
Lines 8101 5361 -2740
Branches 1804 1420 -384
===========================================
- Hits 3610 3166 -444
+ Misses 4059 1906 -2153
+ Partials 432 289 -143 🚀 New features to boost your workflow:
|
No description provided.