@tanstack/react-query
5.108.0 · 17 Nov 2026MIT91.3M / weekRepositoryHomepagenpmAtom feed
5.108.4 is the newest release of 5.x.
In short
1 removed1 new8 fixed1 changed1 internal
- Removed
Remove experimental render-time prefetching and the
promiseproperty from query results.
Release note
Minor Changes
react-query: Update usePrefetchQuery and usePrefetchInfiniteQuery to use queryClient.query and queryClient.infiniteQuery
Patch Changes
Remove NoInfer from useQuery return types
types: Propagate generic type parameters to
useMutationStateselect callbackFix
queryOptionsandinfiniteQueryOptionsreturn types so exported inferred options can be emitted in declaration files without leaking internal data tag symbols.Default
TDataofUseInfiniteQueryOptionsandUseSuspenseInfiniteQueryOptionstoInfiniteData<TQueryFnData>so it matches the hook generics.Make mutation variables optional when
undefined extends TVariables- Removed
Remove experimental render-time prefetching and the
promiseproperty from query results. Avoid emitting a runtime import for React Query's type-only exports.
react-query: Don't show optimistic fetching for unsubscribed useQueries
Remove unused experimental_beforeQuery and experimental_afterQuery hooks
Remove placeholderData from suspense infinite query
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.