npm / @tanstack/query-core
@tanstack/query-core
What changed in @tanstack/query-core 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@tanstack/query-core 54 changes
Fixes and other changes 4
Preserves a stored null first page parameter when refetching an infinite query.
Clears the mutation cache before notifying subscribers so useMutationState and useIsMutating update correctly after queryClient.clear().
Preserves discriminated union narrowing in setQueryData updaters.
Queued scoped mutations now start when the window is not focused.