@tanstack/query-core
5.104.5 · 19 Oct 2026MIT43.4M / weekRepositoryHomepagenpmAtom feed
369 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
5.104.5
19 Oct 2026Use the supplied query options when fetching optimistically so Suspense queries can fetch after their cache entry is recreated without a query function.
5.104.4
17 Oct 2026Clear the mutation cache before notifying subscribers so
useMutationStateanduseIsMutatingupdate correctly afterqueryClient.clear().Preserve a stored
nullfirst page parameter when refetching an infinite query.
5.104.3
15 Oct 2026query-core: preserve discriminated union narrowing in setQueryData updaters
5.104.2
11 Oct 2026query-core: start queued scoped mutations when the window is not focused
5.104.1
2 Oct 2026No changes in this release.
5.104.0
26 Sep 2026Build projects with Vite 8
5.103.3
26 Sep 2026No changes in this release.
5.103.2
21 Sep 2026Ignore removal requests for query instances that are no longer stored in the cache.
5.103.1
16 Sep 2026Handle plain objects with an own
constructordata property during structural sharing and query-key hashing.Preserve
nullvalues returned by customstreamedQueryreducers instead of replacing them withinitialValue.
5.103.0
16 Sep 2026Export the
FocusManager,OnlineManager, andTimeoutManagertypes so their methods appear in the generated reference docs.Reuse the shared query option resolver for refetch intervals to reduce bundle size.
ref(hydration): remove outdated dehydratedAt fallback
Minor Changes
Export the
FocusManager,OnlineManager, andTimeoutManagertypes so their methods appear in the generated reference docs.
Patch Changes
Reuse the shared query option resolver for refetch intervals to reduce bundle size.
ref(hydration): remove outdated dehydratedAt fallback
Prevent longer partial query-key filters with trailing undefined values from matching shorter query keys.
5.102.6 – 5.102.83 releases without a noteShow each
- 5.102.827 Aug 2026no note
- 5.102.727 Aug 2026no note
- 5.102.626 Aug 2026no note
5.102.5
26 Aug 2026Reduce the Query Core bundle size by removing unused symbol descriptions and
simplifying internal helpers.
5.102.4
25 Aug 2026Avoid scheduling stale timeouts for disabled query observers.
5.102.3
24 Aug 20265.102.2
23 Aug 2026Export MutationCacheConfig and QueryCacheConfig.
5.102.1
23 Aug 2026Type hydration input as a partial dehydrated state so omitted mutation and query collections are supported.
5.102.0
22 Aug 2026- removed
Remove experimental render-time prefetching and the
promiseproperty from query results. add query and infiniteQuery methods, deprecate old imperative methods
query-core: clear a stale
selecterror when the observer switches to a query without data, and resetisPlaceholderDataon select-error results to match the declared result types, so a previous query's select error no longer leaks into the new result
Minor Changes
add query and infiniteQuery methods, deprecate old imperative methods
Patch Changes
query-core: clear a stale
selecterror when the observer switches to a query without data, and resetisPlaceholderDataon select-error results to match the declared result types, so a previous query's select error no longer leaks into the new resultImprove hydration performance by skipping no-op data transforms and default error-redaction callbacks.
Export dehydrateQuery.Reduce observer churn overhead by removing observers in place instead of copying the observer list for every unsubscribe.
query-core: reset
isPlaceholderDatawhenselectthrows on placeholder dataFix
queryOptionsandinfiniteQueryOptionsreturn types so exported inferred options can be emitted in declaration files without leaking internal data tag symbols.Skip unused result tracking when notifying
useQuerieslisteners without acombinefunction.Avoid repeatedly synchronizing the same tracked property across all observers in
useQueries.Reattach
MutationObserverto its current mutation when a listener subscribes again, so auseMutationresult no longer stayspendingafter React tears down and re-establishes the subscription mid-mutation.Ignore a retained
pendingThenablesettlement callback invoked after the thenable has settled. Holding a reference toresolve/rejectand calling it later used to overwritestatusandreasoneven though the underlying promise had already settled, leaving the thenable advertising a state that disagreed with its value.make mutation variables optional when
undefined extends TVariables- removed
Remove experimental render-time prefetching and the
promiseproperty from query results. Release a mutation's retryer once its execution settles, so the settled promise no longer keeps that mutation's result, variables and context in memory for as long as the mutation cache retains it.
Release a query's retryer once its fetch settles, so the settled promise no longer keeps that fetch's raw result in memory alongside the structurally shared
state.data(or after the query is reset or removed).Resolve suspense when query data is set programmatically via setQueryData or streamedQuery. Previously, fetchOptimistic returned only the fetch promise, which left the Suspense boundary stuck until the queryFn completed — even when data already existed in the cache. The fix uses Promise.race with a cache subscriber to release suspense as soon as data becomes available.
Notify every query observer when another observer unsubscribes synchronously during the same query update.
resetQueries now preserves the queries matched before query.reset() changes their state.
Memoize falsy
combineresults when the function and query results are unchanged.
5.101.4
21 Jul 2026Reading the note…
5.101.3
20 Jul 2026Reading the note…
5.101.2
27 Jun 2026Reading the note…
5.101.1
23 Jun 2026Reading the note…
5.101.0
2 Jun 2026Reading the note…
5.100.14
23 May 2026Reading the note…
5.100.13
22 May 2026Reading the note…
5.100.12
22 May 2026Reading the note…
5.100.11
18 May 2026Reading the note…
5.100.10
11 May 2026Reading the note…
5.100.9
3 May 2026Reading the note…
5.100.8
2 May 2026Reading the note…
5.100.7
1 May 2026Reading the note…
5.100.6
28 Apr 2026Reading the note…
5.100.5
25 Apr 2026Reading the note…
5.100.4
25 Apr 2026Reading the note…
5.100.3
25 Apr 2026Reading the note…
5.100.2
25 Apr 2026Reading the note…
5.100.1
23 Apr 2026Reading the note…
5.100.0
23 Apr 2026Reading the note…
5.99.2
19 Apr 2026Reading the note…
5.99.1
18 Apr 2026Reading the note…
5.99.0
11 Apr 2026Reading the note…
5.98.0
11 Apr 2026Reading the note…
5.97.0
9 Apr 2026Reading the note…
5.96.2
3 Apr 2026Reading the note…
5.96.1
1 Apr 2026Reading the note…
5.96.0
31 Mar 2026Reading the note…
5.95.2
23 Mar 2026Reading the note…
5.95.1
23 Mar 2026Reading the note…
5.95.0
22 Mar 2026Reading the note…