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 is based on my findings in #6116 and fixes two cases of unnecessary suspensions during streaming SSR, one on code and the other in the advanced SSR docs....
### Describe the bug Hi Query maintainers. I'm Lucas, a core contributor to the Drips project (https://www.drips.network/). I help recipients of donations through their learning and onboarding process. The WAGMI...
The object passed to the `queryFn` should be typed as `QueryFunctionContext` when using `useQueries`
### Describe the bug The `context` isn't typed as `QueryFunctionContext` in a `useQueries` `queryFn`. ### Your minimal, reproducible example https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgVwM4FMCKz1WO1OAXzgDMoIQ4ByAARgEMA7VRgYwGsB6KdBtmAFoAjjigBPagCgppZEwHAITOAEEwYABQBKRFLhw2y1mXQw2AC1UATa71SEAvHE2pgAcyYMANgC41AEbQMADKHl7e2v6seEzucI4AfHoGBrwwyFAq1AAyzOhwAIzUANz6xGXlRizwaOiqsMCsTi66SSmp6Zkqddi4+KiaCOWpcKL9BL4jo3AA2tMzHYuj4xIA0uji-rPUDLb2qNQAugA0C8ur4gBiTP6aAgAebcmkZpY2dgSDjwB0bp4+bRnZapIjnAxHaZEbTlMFgoA ### Steps to reproduce 1. Open typescript playground 2. Notice...
### Describe the bug The docs for the latest version state the following: > [Global callbacks](https://tanstack.com/query/latest/docs/reference/QueryCache#global-callbacks) > The onError, onSuccess and onSettled callbacks on the QueryCache can be used to...
### Describe the bug I am reading the docs for `useMutation` and one of the returned properties is `data`. [useMutation docs](https://tanstack.com/query/latest/docs/framework/react/reference/useMutation#:~:text=data%3A%20undefined%20%7C%20unknown) This is the description: - `data: undefined | unknown`...
### Describe the bug `setQueryData` iterates over all entries in the cache to find matches. This leads to performance issues when priming large datasets. ### Your minimal, reproducible example https://codesandbox.io/p/sandbox/react-query-setquerydata-complexity-xl4d3t...
eslint-plugin-query: exhaustive-deps error not triggered when dependency is nested inside then/catch
### Describe the bug exhaustive-deps triggers only when we use some dependency in non-nested code, but while using then/catch - it cannot detect used dependency. ### Your minimal, reproducible example...
### Describe the bug Nested useQuery with the same queryKey and parent is **enabled: false** triggers unnecessary re-render. It will not trigger re-rendering if parent is set to **enabled: true**....
This PR refactors the existing implementations of `NotifyManager` and `Subscribable` instances into TanStack Store utilities as an experiment to see if we're able to consolidate on the tooling we want...
Closes https://github.com/TanStack/query/discussions/6756 # TODO: - [ ] Fix any broken tests - [x] Migrate `useQueryState` logic to `useMutationState` - [ ] Add working tests for `useQueryState` - [ ] Mark...