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.
Fixes #7412 - Add `isFetchNextPageError` and `isFetchPreviousPageError`. - Update `isRefetchError` to be consistent with `isRefetching`. - Update docs and type definitions for `useInfiniteQuery`. - Add unit tests. Related #4465
### Describe the bug Using `useInfiniteQuery`, I would like to manually handle errors that occur during `fetchNextPage` or `fetchPreviousPage`, while displaying a generic message for errors that occur during initial...
Fixes: https://github.com/TanStack/query/issues/7270
Fixing the broken links in the `v4` docs. fixes #7395 This work has been already done for `v5` in this PR: https://github.com/TanStack/query/pull/7247 # TODO Fix the docs for the following...
The goal of this PR is to allow providing default query options to a React subtree. So basically like `queryClient.setDefaultOptions` / `queryClient.setQueryDefaults` but scoped to a component subtree. Technically this...
### Describe the bug I've got a query that's using `instanceof` to ensure that my API client is returning the expected type. The ESLint plugin is flagging this type as...
### Describe the bug at end of the this document [https://tanstack.com/query/v4/docs/reference/QueryCache](page), there is a link to [https://tanstack.com/query/v4/docs/reference/QueryCache/framework/react/community/tkdodos-blog#18-inside-react-query](community) that it is not exist ### Your minimal, reproducible example https://tanstack.com/query/v4/docs/reference/QueryCache/framework/react/community/tkdodos-blog#18-inside-react-query ### Steps...
The goal of this PR is to support the infiniteQueryOptions utility as it already does for react: [tanstack.com/query/latest/docs/framework/react/reference/infiniteQueryOptions](https://tanstack.com/query/latest/docs/framework/react/reference/infiniteQueryOptions)
### Describe the bug When I want to use `isPending` from mutation I'm getting wrong type. It's returning calculated signal but type is wrongly resolved to boolean. It's also happening...