@tanstack/react-query
5.108.0 · 17 Nov 2026MIT91.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @tanstack/react-query From 5.99.2 to 5.108.4
53 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 3
- new
- 20
- fixes
Before you upgrade
Tick each one off as you go- Breaking5.102.0
Release by release
5.108.0 – 5.108.45 releases, nothing new or fixed in the notes
- Fixed
Replace star exports with explicit exports while preserving the current public API. Adapters continue to re-export all of their corresponding core package.
- Fixed
5.105.3 – 5.107.15 releases, nothing new or fixed in the notes
- Fixed
Update the observer options before subscribing so revealing an
<Activity>tree whose query key changed while hidden no longer fetches the previous key. - Fixed
Exclude
statusfrom the filters accepted byQueryClient.isMutating,useIsMutating, andinjectIsMutating. These APIs always count mutations withstatus: 'pending'.
- Fixed
- Fixed
{react,preact,angular,solid,vue}-query/infiniteQueryOptions: Correct the overload selected for a possibly-undefined 'initialData'
- Fixed
Exclude
fetchStatusfrom the filters accepted byQueryClient.isFetching,useIsFetching, andinjectIsFetching. These APIs always count queries withfetchStatus: 'fetching'.
- Fixed
5.105.0nothing new or fixed in the note
- Fixed
Recompute
useMutationStateanduseIsMutatingresults when their filters, selector, or query client change, without waiting for a mutation cache update.
- Fixed
- New
Allow queries with falsy errors to retry on mount when
throwOnErrorreturns false. - Fixed
react-query:* Declare '@types/react' as an optional peer dependency
- New
1 other line we could not sort, mostly version bumps
- 5.102.0
Remove NoInfer from useQuery return types
75 internal lines (docs, tests, tooling) left out.
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.