-
-
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(query-core): type override subscribe in InfiniteQueryObserver more clearly #7914
fix(query-core): type override subscribe in InfiniteQueryObserver more clearly #7914
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit ccb4a62. 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. |
commit: @tanstack/angular-query-devtools-experimental
@tanstack/angular-query-experimental
@tanstack/eslint-plugin-query
@tanstack/query-async-storage-persister
@tanstack/query-broadcast-client-experimental
@tanstack/query-core
@tanstack/query-devtools
@tanstack/query-persist-client-core
@tanstack/query-sync-storage-persister
@tanstack/react-query
@tanstack/react-query-devtools
@tanstack/react-query-next-experimental
@tanstack/react-query-persist-client
@tanstack/solid-query
@tanstack/solid-query-devtools
@tanstack/solid-query-persist-client
@tanstack/svelte-query
@tanstack/svelte-query-devtools
@tanstack/svelte-query-persist-client
@tanstack/vue-query
@tanstack/vue-query-devtools
More templates
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7914 +/- ##
===========================================
+ Coverage 44.64% 63.29% +18.65%
===========================================
Files 187 127 -60
Lines 7090 4536 -2554
Branches 1575 1264 -311
===========================================
- Hits 3165 2871 -294
+ Misses 3562 1437 -2125
+ Partials 363 228 -135 |
subscribe!: Subscribable< | ||
InfiniteQueryObserverListener<TData, TError> | ||
>['subscribe'] |
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.
It's trivial. but when doing type overriding, I want to use Subscribable and make it clearer to override while keeping the constraints of Subscribable, so I think it reduces the possibility of making constraint mistakes.
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.
shouldn't we do the same for other type overrides, like fetch
a couple of lines below as well?
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.
I tried this on other type overrides(getCurrentResult, fetch) in ccb4a62
subscribe!: Subscribable< | ||
InfiniteQueryObserverListener<TData, TError> | ||
>['subscribe'] |
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.
I tried this on other type overrides(getCurrentResult, fetch) in ccb4a62
No description provided.