-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fix(query-core) Fix queries argument's type definition in queriesObserver #9449
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
base: main
Are you sure you want to change the base?
fix(query-core) Fix queries argument's type definition in queriesObserver #9449
Conversation
View your CI Pipeline Execution ↗ for commit 3ee21cf
☁️ Nx Cloud last updated this comment at |
why don’t we have the problem you’re describing here: query/packages/react-query/src/useQueries.ts Lines 282 to 283 in 07cbfe1
? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9449 +/- ##
===========================================
+ Coverage 45.30% 59.57% +14.26%
===========================================
Files 208 137 -71
Lines 8283 5521 -2762
Branches 1872 1485 -387
===========================================
- Hits 3753 3289 -464
+ Misses 4085 1930 -2155
+ Partials 445 302 -143 🚀 New features to boost your workflow:
|
queries
argument is not typed consistently in many of the methods inqueriesObserver
class. The constructor typed it to beArray<QueryObserverOptions<any, any, any, any, any>>
but in few other places it'sArray<QueryObserverOptions>
which means the default will kick in, making itArray<QueryObserverOptions<unknown, DefaultError, unknown, unknown, QueryKey>
.This caused issues when I try to interact with queryObserver:
In the fix, I used the same type that the constructor takes in for queryOptions in
setQueries
and a few other places.