-
-
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: make queryFn optional again #8176
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 1fc90b7. 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 #8176 +/- ##
===========================================
+ Coverage 45.41% 81.84% +36.43%
===========================================
Files 200 26 -174
Lines 7456 358 -7098
Branches 1696 97 -1599
===========================================
- Hits 3386 293 -3093
+ Misses 3694 56 -3638
+ Partials 376 9 -367
|
fixes #8180
#8082 broke trpc's
useSuspenseQueries
as it madequeryFn
required.queryFn
is optional in all other types and should remain so. We set this param internally and the users should not provide it themselves.For example, this should be possible:
most notably
options
doesn't have aqueryFn
specified since that's set by trpc internally.this PR fixes the issue by making the override still optional, as it is in the base type
PR on trpc: trpc/trpc#6118 (see patch here: https://github.com/trpc/trpc/pull/6118/files#diff-996d92a63ec784c3182c4cfccc74574ce428ba741562b83cffa4fed1999539e1)
--
not sure how i should add tests in RQ for this