# What changed in @tanstack/solid-query

> 114 changes in @tanstack/solid-query 5 from its official release notes, upgrade guides and advisories: 75 breaking, 9 deprecations, 16 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@tanstack/solid-query/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @tanstack/solid-query 5

### Breaking changes

- The filters accepted by this API no longer include status; it always counts mutations with status: 'pending'. (5.105.2) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.105.2)
- Excludes fetchStatus from filters accepted by QueryClient.isFetching, useIsFetching, and injectIsFetching; these APIs always count queries with fetchStatus: 'fetching'. (5.105.1) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.105.1)
- Removes the `promise` property from query results. (5.102.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.102.0)
- Removes experimental render-time prefetching. (5.102.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.102.0)
- The Solid prefix was removed from SolidInfiniteQueryOptions, making InfiniteQueryOptions the type name. (5.100.6) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.100.6)
- The Solid prefix was removed from SolidMutationOptions, making MutationOptions the type name. (5.100.6) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.100.6)
- The Solid prefix was removed from SolidQueryOptions, making QueryOptions the type name. (5.100.6) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.100.6)
- Custom loggers have been removed; logging only had an effect in development mode. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Custom loggers have been removed; logging only had an effect in development mode, where passing a custom logger is not necessary. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Queries and mutations are always dehydrated by default; customize this with shouldDehydrateQuery or shouldDehydrateMutation instead of boolean options. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Queries and mutations are always dehydrated by default; use shouldDehydrateQuery or shouldDehydrateMutation to change this behavior. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Error is now the default TypeScript error type instead of unknown; specify a generic for other thrown values. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Error is now the default TypeScript error type instead of unknown; specify a generic to use another thrown value type. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Renamed from cacheTime; it controls when unused query data is garbage collected. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Renames cacheTime to gcTime to clarify that the duration applies after a query becomes unused, before its data is garbage collected. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Now required for infinite queries; returning null or undefined indicates that no further page is available. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Returning null, as well as undefined, now indicates that no further page is available. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Returning null or undefined now indicates that no further page is available. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Renamed from hashQueryKey; it also hashes mutation keys and can be used in mutation predicates. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Renames hashQueryKey to hashKey, which also hashes mutation keys. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Required for infinite queries and supplies the pageParam for the first page instead of implicitly passing undefined. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Infinite queries now require an explicit initialPageParam, used as the pageParam for the first page. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Removed; use structuralSharing to provide the equivalent comparison behavior. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The useQuery option has been removed; use structuralSharing to implement equivalent data comparison. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- For queries, now means isPending && isFetching; for mutations, the former isLoading flag is renamed isPending. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Replaces isLoading as the derived flag for pending queries and mutations. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Use this flag in place of isPreviousData; placeholderData now puts the query into success state and dataUpdatedAt stays at 0. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Removed in favor of isPlaceholderData. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The keepPreviousData option was removed; use placeholderData with the identity function or the included keepPreviousData function. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- An included identity function can be passed to placeholderData to achieve the previous keep-previous-data behavior. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The keepPreviousData option and isPreviousData flag are removed; use placeholderData with an identity function or the included keepPreviousData function. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Removed the ability to override pagination parameters by passing pageParam directly to fetchNextPage or fetchPreviousPage; getNextPageParam is now required. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Manual mode for infinite queries has been removed, and getNextPageParam is now required. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Network status no longer relies on navigator.onLine; it starts online and updates from online and offline events. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Starts online and updates only in response to online and offline events instead of relying on navigator.onLine. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Removed from queries and QueryObserver callbacks; mutation callbacks are unchanged. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Query callbacks onSuccess, onError, and onSettled have been removed; mutation callbacks remain. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Now receives previous query data as an argument, allowing an identity function to provide keep-previous-data behavior. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Its callback now receives previous query data, enabling an identity function to provide the prior data as placeholder data. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Class fields and methods that were TypeScript-private now use ECMAScript private features and cannot be accessed externally at runtime. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Class fields and methods that were TypeScript-private now use ECMAScript private features and cannot be accessed from outside at runtime. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- QueryClient methods that accept query or mutation filters now use the single options-object form instead of positional overloads. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Now accepts only queryKey; the filters argument is no longer accepted. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Now accepts only a queryKey argument; remove any filters argument from calls. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Now merges all matching registrations instead of returning only the first matching registration. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Now accepts only queryKey; the filters argument is no longer accepted. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Now accepts only a queryKey argument; remove any filters argument from calls. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Registrations should be ordered from the most generic query key to the least generic because matching defaults are merged. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Its callback now receives only query rather than data and query; transformed data is not provided. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Its callback now receives only the query, rather than data and query. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Window-focus refetching now uses visibilitychange exclusively and no longer listens to the focus event. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Removed in favor of maxPages for limiting infinite-query pages stored and refetched. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The infinite-query refetchPage option has been removed in favor of maxPages, which limits stored and refetched pages. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Removed from the useQuery result; use queryClient.removeQueries with queryKey to remove a query. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The remove method has been removed from useQuery; use queryClient.removeQueries({ queryKey }) to remove a query. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Retries now default to 0 on the server instead of 3. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Retries now default to 0 on the server. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Function equivalent to the removed dehydrateMutations boolean option for controlling mutation dehydration. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Function equivalent to the removed dehydrateQueries boolean option for controlling query dehydration. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The loading status value is now pending for queries and mutations. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The loading status is renamed to pending for queries and mutations; isLoading is renamed to isPending, and queries gain a new isLoading flag. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- The supported browser requirements have been updated to produce a more modern, performant, and smaller bundle. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- The experimental suspense boolean flag on query hooks has been removed in favor of dedicated suspense hooks. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Replaces useErrorBoundary as the option for controlling whether errors are thrown. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The minimum required TypeScript version is now 4.7. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The minimum required TypeScript version is now 4.7. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- No longer automatically used as the batching function; frameworks can register a custom function with notifyManager.setBatchNotifyFunction. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Renamed to throwOnError to describe its behavior in a framework-agnostic way. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Infinite-query hooks now support only the single options-object signature; positional overloads have been removed. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The hook now supports only the single options-object signature; positional overloads have been removed. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- The hook now supports only the single options-object signature; positional overloads have been removed. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Mutation hooks now support only the single options-object signature; positional overloads have been removed. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Query hooks now support only the single options-object signature; positional overloads are no longer supported. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Query hooks now support only the single options-object signature; positional overloads have been removed. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Window-focus refetching now listens exclusively to the visibilitychange event, not the focus event. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)

### Deprecations

- Deprecated because it has the same behavior as the new isLoading flag and will be removed in the next major version. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- isInitialLoading is deprecated; it has the same behavior as the new isLoading flag and will be removed in the next major version. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Deprecated in favor of queryClient.infiniteQuery with staleTime set to static and will be removed in v6. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Deprecated in favor of queryClient.query with staleTime set to static and will be removed in v6. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Deprecated in favor of queryClient.infiniteQuery and will be removed in v6. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Deprecated in favor of queryClient.query and will be removed in v6. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Imperative fetch and prefetch methods are deprecated in favor of queryClient.query and queryClient.infiniteQuery, and will be removed in v6. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Deprecated in favor of queryClient.infiniteQuery with a catch handler and will be removed in v6. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Deprecated in favor of queryClient.query with a catch handler and will be removed in v6. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)

### New APIs and options

- Adds mutationOptions to solid-query. (5.91.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.91.0)
- A new option for useQueries. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- A new combine option is available for useQueries. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- An experimental fine-grained storage persister is available. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- An experimental fine-grained storage persister is available. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Limits the number of pages stored in infinite-query data and subsequently refetched; both pagination directions must be defined. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Infinite queries can limit the number of pages stored and refetched; the infinite list must define both getNextPageParam and getPreviousPageParam. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Infinite-query prefetching can use the pages option to prefetch more than the first page. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Infinite queries can prefetch more than the first page using the pages option. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/vue/guides/migrating-to-v5)
- Introduced as the replacement for queryClient.fetchInfiniteQuery and as an API for infinite queries with an options object. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Introduced as the replacement for queryClient.fetchQuery and as an API for querying with an options object. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- A typesafe way to create query options is available. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- Mutation results expose submittedAt and variables for simplified optimistic UI updates without writing data directly to the cache. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- A dedicated suspense infinite-query hook provides data that is never potentially undefined at the type level. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- A dedicated suspense queries hook provides data that is never potentially undefined at the type level. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)
- A dedicated suspense query hook provides data that is never potentially undefined at the type level. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)

### Performance

- The supported browser set was updated to produce a more modern, performant, and smaller bundle. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)

### Behavior and default changes

- Allows a framework with a custom batching function to register it with TanStack Query. (5.0.0) — [upgrade guide](https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5)

### Fixes and other changes

- Corrects the overload selected when initialData may be undefined. (5.105.1) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.105.1)
- Corrects the overload selected for initialData in solid-query's queryOptions and useQuery. (5.105.1) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.105.1)
- When the queryClient passed to useQuery changes, the hook now subscribes to the new observer. (5.104.4) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.104.4)
- Switched the SSR cleanup property to address an Astro crash. (5.103.3) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.103.3)
- Fixes return types so exported inferred options can be emitted in declaration files without leaking internal data tag symbols. (5.102.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.102.0)
- Mutation variables are optional when `undefined extends TVariables`. (5.102.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.102.0)
- Propagates generic type parameters to the select callback. (5.102.0) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.102.0)
- Maintains the error state on reset refetch when initialData is defined. (5.91.3) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.91.3)
- Fixed solid-router so context reads use only useQueryClient and useIsRestoring. (5.90.26) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.90.26)
- Solid now allows both create- and use-style APIs. (5.90.25) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.90.25)
- Deprecated type aliases now forward generic parameters. (5.90.24) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.90.24)
- Errors are skipped if returned data is undefined. (5.90.9) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/solid-query%405.90.9)
