Skip to content

docs: TanStack React Query migration doc improvement #6551

Closed

Description

@CHC383

Update: Sorry I completely missed https://trpc.io/docs/client/tanstack-react-query/server-components and was able to find answers of the questions below there, maybe just simply add a banner on the migration page to point RSC users to the Server Components page, but not that big of deal since the page exists. Please feel free to close this issue.

Area of Improvement

Hi, after running @trpc/upgrade to codemod my code (NextJs app router with RSC), I noticed some other changes that could be mentioned in the documentation

  • Rename old TRPCProvider: I was coming from this doc, so there was already a TRPCProvider. Since the new code has a TRPCProvider returned from createTRPCContext, my own TRPCProvider needs to be renamed to something like AppTPRCProvider (or any other better names)
  • Migrate HydrateClient and server side trpc: HydrateClient is created according to this doc and included in all the pages with client side TRPC usage, trpc created in the same place is used by the server components. How shall we deal with them in the new integration?

Link to related docs

https://trpc.io/docs/client/react/server-components

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd be down to file a PR implementing the suggested changes!

Activity

  1. added
    📚 documentation / examples
    on Feb 23, 2025
  2. KATT commented on Nov 2, 2026

    @KATT
    Member

    🤖 Closing as you suggested: the Server Components page covers this. Thanks @CHC383!

  3. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

    This issue has been locked because we are very unlikely to see comments on closed issues. If you are running into a similar issue, please create a new issue. Thank you.

  4. locked as resolved and limited conversation to collaborators on Nov 3, 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

    📚 documentation / examples

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions