# What changed in @tanstack/query-core

> 4 changes in @tanstack/query-core 5 from its official release notes, upgrade guides and advisories. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/@tanstack/query-core/

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

## @tanstack/query-core 5

### Fixes and other changes

- Preserves a stored null first page parameter when refetching an infinite query. (5.104.4) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/query-core%405.104.4)
- Clears the mutation cache before notifying subscribers so useMutationState and useIsMutating update correctly after queryClient.clear(). (5.104.4) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/query-core%405.104.4)
- Preserves discriminated union narrowing in setQueryData updaters. (5.104.3) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/query-core%405.104.3)
- Queued scoped mutations now start when the window is not focused. (5.104.2) — [release notes](https://github.com/TanStack/query/releases/tag/%40tanstack/query-core%405.104.2)
