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.
for breaking syntax changes: - #4694 - #4677 - #4678 @balazsmatepetro let me know if you want to work on this :)
### context `useQuery` and friends have many overloads in TypeScript - different ways how the function can be invoked. As an example, let's look at `useQuery`. You can call it...
### context The `queryHash` is the result of the query key hashing, produced by the `queryKeyHashFn`. This function defaults to a stable `JSON.stringify`, but can also be passed in by...
To be compatible with React Server Components @Ephem we'd need to decide if this can go into v4 or if we also do this for v5
I think we should also do this in v5 @Ephem sandbox that shows potential mismatch: https://codesandbox.io/p/sandbox/epic-wind-bwwhes?file=%2Fapp%2Fpage.tsx&selection=%5B%7B%22endColumn%22%3A6%2C%22endLineNumber%22%3A1%2C%22startColumn%22%3A6%2C%22startLineNumber%22%3A1%7D%5D from - https://github.com/TanStack/query/discussions/5357
This PR attempts to fix #4685 of v5 milestones - set sideEffects to false in react-query/package.json - remove the side effect import from index.ts - delete reactBatchedUpdates.ts, reactBatchedUpdates.native.ts, setBatchUpdatesFn.ts files...
Closes: #4683
### context In JavaScript, you can `throw` anything, even literals like `5` or Promises (?? suspense). That is why the generic for the type `TError` defaults to `unknown`. This is...
### Describe the bug On versions 4.20.2 and above I get _Uncaught Error: No QueryClient set, use QueryClientProvider to set one_, but **only in dev mode**. After build works fine....