Skip to content

[pull] main from TanStack:main#72

Merged
pull[bot] merged 5 commits intoFairyWorld:mainfrom
TanStack:main
May 3, 2026
Merged

[pull] main from TanStack:main#72
pull[bot] merged 5 commits intoFairyWorld:mainfrom
TanStack:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 3, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

neefrehman and others added 5 commits May 3, 2026 14:34
Follow-up to #10510. That PR removed NoInfer from all three persister
generics to fix TQueryFnData inference when the companion queryFn
declares a parameter (#7842). Keeping NoInfer on TQueryKey preserves
that fix while preventing the persister slot from widening TQueryKey
inference.

Without NoInfer on TQueryKey, the persister slot contributes to
TQueryKey inference. When Register.queryKey is augmented to a narrowed
constraint, TQueryKey widens to that constraint instead of the literal
passed to queryKey. Wrappers that brand their return with
DataTag<TQueryKey, ...> then produce a brand on the wider type, which
a plain literal tuple can no longer satisfy in contravariant positions
(vi.mocked(...).mockReturnValue, typed variable assignments, etc.).

TQueryFnData still participates in inference, so #10510's positive and
negative type tests continue to pass.

Co-authored-by: Wonsuk Choi <sukvvon@gmail.com>
fix: remove typo in QueryOptions#retry JSDoc
* feat(angular-query): add devtools theme option

* chore: apply review feedback
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.