-
-
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): widen QueriesObserver queries type (#7446) #7492
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 8f74190:
|
can you add a type test for your situation please? |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 05e887d. 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. |
Widen the `QueriesObserver` queries type so we can assign `UseQueryOptions` to `QueryObserverOptions`. The result from the `queryOptions` helper can now be passed to `QueriesObserver`.
cb7c9c4
to
8f74190
Compare
Run & review this pull request in StackBlitz Codeflow. 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
templates
|
prettier fails now 😭 |
Widen the
QueriesObserver
queries type so we can assignUseQueryOptions
toQueryObserverOptions
.The result from the
queryOptions
helper can now be passed toQueriesObserver
.This align the
QueriesObserver
behavior withQueryObserver
(that already acceptsUseQueryOptions
).Caveat: The return type from
QueriesObserver
will beQueriesObserver<QueryObserverResult[]>
, it means that theQueryObserverResult
data type will beunknown
. As discussed in #7446 (comment) it has been decided that it was an acceptable compromise for now.