You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: ReactQueryOptions doesnt infer select from data selectors #7183
By using this example in v11.10.0 ReactQueryOptions['post']['byId'] doesnt have select property, whereas options in trpc.post.byId.useQuery(input, options) does have it
Describe the solution you'd like to see
ReactQueryOptions['post']['byId'] include select property
Describe alternate solutions
add a customselect (data) fn type to options in trpc.post.byId.useQuery(input, options)
Activity
fix(react-query): include `select` in inferReactQueryProcedureOptions
fix(react-query): include `select` in inferReactQueryProcedureOptions
fix(react-query): include `select` in inferReactQueryProcedureOptions
KATT commentedon Nov 2, 2026
🤖 In v12,
queryOptions()takes TanStack's own options next toinput, includingselect,staleTimeand the rest, and types them from the procedure, soselectinfers from your data. https://v12.trpc.io/v12/docs/integrations/tanstack-query#the-helpers. v12 isn't released yet and there's no ETA.