Packages

@tanstack/react-query

5.108.0 · 17 Nov 2026MIT91.3M / weekRepositoryHomepagenpmAtom feed

Your version

5.102.0

22 Aug 2026Where it was published

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 promise property 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 useMutationState select callback

  • Fix queryOptions and infiniteQueryOptions return types so exported inferred options can be emitted in declaration files without leaking internal data tag symbols.

  • Default TData of UseInfiniteQueryOptions and UseSuspenseInfiniteQueryOptions to InfiniteData<TQueryFnData> so it matches the hook generics.

  • Make mutation variables optional when undefined extends TVariables

  • Removed

    Remove experimental render-time prefetching and the promise property 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.