-
-
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(angular-query): remove queryClient parameter from callback functions #8307
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 834d96d. 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. |
38181b8
to
834d96d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8307 +/- ##
===========================================
+ Coverage 45.96% 88.21% +42.24%
===========================================
Files 199 17 -182
Lines 7501 263 -7238
Branches 1717 40 -1677
===========================================
- Hits 3448 232 -3216
+ Misses 3676 30 -3646
+ Partials 377 1 -376
|
The queryClient being passed to callback functions of injectMutation and injectQuery is convenient as there's no need for the developer to then inject the queryClient themselves. However it's causing problems with typing.
To get to a stable release removing this parameter for now.
This is a breaking change, if you currently use this functionality please inject the queryClient yourself:
Fixes #8042