-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix(query-core): make sure we don't invoke select too often when using placeholderData #9007
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
…g placeholderData
View your CI Pipeline Execution ↗ for commit 0149f52.
☁️ Nx Cloud last updated this comment at |
Sizes for commit 0149f52:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9007 +/- ##
===========================================
+ Coverage 44.55% 60.81% +16.26%
===========================================
Files 202 153 -49
Lines 8067 5859 -2208
Branches 1780 1596 -184
===========================================
- Hits 3594 3563 -31
+ Misses 4049 1985 -2064
+ Partials 424 311 -113 🚀 New features to boost your workflow:
|
this helps us memoizing select calls, and we can get rid of some duplication around how select is called again after placeholderData
// @ts-expect-error | ||
select: () => undefined, |
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.
note: this test was quite weird to begin with because it’s not allowed to return undefined from select 🤷
No description provided.