Skip to content

feat: ReactQueryOptions doesnt infer select from data selectors #7183

Open

Description

@alvinlys

Describe the feature you'd like to request

By using this example in v11.10.0
Image
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

  1. added 3 commits that reference this issue on Apr 2, 2026
    7513dbf
    d20e5a5
    9d814d9
  2. KATT commented on Nov 2, 2026

    @KATT
    Member

    🤖 In v12, queryOptions() takes TanStack's own options next to input, including select, staleTime and the rest, and types them from the procedure, so select infers from your data. https://v12.trpc.io/v12/docs/integrations/tanstack-query#the-helpers. v12 isn't released yet and there's no ETA.

  3. added
    next-major/definite
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-major/definite

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions