mirror of
https://github.com/TanStack/query.git
synced 2026-11-18 19:33:22 +00:00
Inlining a `select` on a query object passed to `useQueries` / `useSuspenseQueries` can't infer its `data` argument from the sibling `queryFn` and falls back to `unknown` — a known TypeScript limitation (TanStack/query#6556). Document the two workarounds (annotate the `select` parameter, or define the query with the `queryOptions` helper) in the React docs, and add type tests guarding the behavior. Scoped to React for an easier review; the other framework adapters can follow the same pattern in separate PRs. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
145 lines
4.5 KiB
145 lines
4.5 KiB