query
query copied to clipboard
🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
This PR addresses an issue identified in PR #6753, where the queryClient does not behave as expected when used with useState. the examples were modified, but the changes did not...
`CreateQueryOptions.queryFn` should be a union between `SkipToken` and `QueryFunction`. The `GetResults` type in react-query seems to handle this, but svelte-query currently omits this union, so the `QueriesResult` type always returns...
Some types that are exported by e.g. react-query are not exported by svelte-query, including the types for the "createQueries" API.
### Describe the bug It appears that when using Suspense and the [documented](https://tanstack.com/query/latest/docs/framework/react/guides/prefetching#prefetch-in-components) `usePrefetchQuery` (which is essentially `queryClient.ensureQueryData()` in the render phase), if the query function throws an error, it...
### Describe the bug ```ts import { queryOptions } from "@tanstack/vue-query" import { computed } from "vue" queryOptions({ queryKey: ["hello"], queryFn: ({ queryKey }) => { queryKey // ^? (parameter)...
### Describe the bug #### Background `notifyOnChangeProps` is a query option that determines if the query should notify listeners if query properties change. It has the following type: https://github.com/TanStack/query/blob/1d60d44ad851472d37aaa3eef22ada07e5245989/packages/query-core/src/types.ts#L144-L148 Depending...
### Describe the bug In TS, `@tanstack/svelte-query` imports are broken under `moduleResolution: nodenext` (currently equivalent to `moduleResolution: node16`). See https://arethetypeswrong.github.io/?p=@tanstack/[email protected] This happens because imports/exports in `dist` are missing the file...
I tried https://github.com/TanStack/query/pull/6988 again @TkDodo, @DamianOsipiuk In my opinion, this Pull Request should be merged regardless of the Codecov workflow error.
### Describe the bug When passing options created with the `queryOptions` helper to `QueriesObserver` we got the following TypeScript error as it is unable to assign `UseQueryOptions` to `QueryObserverOptions`: ```ts...