fix(query-core): widen QueriesObserver queries type (#7446)#7492
Merged
TkDodo merged 4 commits intoTanStack:mainfrom Jul 17, 2024
Merged
fix(query-core): widen QueriesObserver queries type (#7446)#7492TkDodo merged 4 commits intoTanStack:mainfrom
TkDodo merged 4 commits intoTanStack:mainfrom
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:
|
TkDodo
approved these changes
May 31, 2024
Collaborator
|
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
|
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
|
Collaborator
|
prettier fails now 😭 |
This was referenced Aug 9, 2024
Merged
Merged
This was referenced Aug 10, 2024
This was referenced Aug 12, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widen the
QueriesObserverqueries type so we can assignUseQueryOptionstoQueryObserverOptions.The result from the
queryOptionshelper can now be passed toQueriesObserver.This align the
QueriesObserverbehavior withQueryObserver(that already acceptsUseQueryOptions).Caveat: The return type from
QueriesObserverwill beQueriesObserver<QueryObserverResult[]>, it means that theQueryObserverResultdata type will beunknown. As discussed in #7446 (comment) it has been decided that it was an acceptable compromise for now.