Repository navigation
docs(www): drop the star from TanStack React Query, mark classic React Query deprecated - #7804
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Deprecation guidance and migration links www/v11/docs/client/react.md, www/v11/docs/client/react/*, www/v11/docs/client/tanstack-react-query.md |
React integration pages add or update deprecation warnings and migration links. The TanStack page directs new projects to this integration, describes the classic integration's status, and links to the migration guide. |
Next.js integration references www/v11/docs/client/nextjs.md, www/v11/docs/client/nextjs/pages-router/setup.md |
The Pages Router descriptions identify the classic integration and point readers to TanStack React Query guidance. |
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Other
Possibly related PRs
- trpc/trpc#7790: Updates a Next.js App Router link to TanStack React Query documentation, supporting the same migration path.
- trpc/trpc#7802: Covers the same classic React Query deprecation notices and migration guidance.
Suggested reviewers: nick-lucas
Merge Risk: 
Minimal · up to 49924
-
The deprecation guidance and migration references introduce no identified merge-blocking risk.
Pre-merge checks: 
4
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
|
@coderabbitai review |
Action performed
|
@trpc/client
@trpc/next
@trpc/openapi
@trpc/react-query
@trpc/server
@trpc/tanstack-react-query
@trpc/upgrade
commit: |
trpc-bot
left a comment
There was a problem hiding this comment.
Required CI is green and CodeRabbit has no open comments. Approving.
…c/react-query deprecated Co-authored-by: alexander <[email protected]>
28de90f to
4992481
Compare
|
@coderabbitai review |
Action not completed
|
trpc-bot
left a comment
There was a problem hiding this comment.
Rebased onto main. Required CI is green and CodeRabbit has no open comments. Approving.
…pp Router setup (trpc#7805) <!-- CURSOR_AGENT_PR_BODY_BEGIN --> Second of a stack of two, on top of [trpc#7804](trpc#7804). Merge them together. ## Why - `@trpc/next` is deprecated in favor of the TanStack React Query integration. - The top bar's "Using Next.js" went to the overview, which covers both routers. ## What - Every Pages Router page (setup, SSR, SSG, server-side helpers, aborting calls) now opens with a "Deprecated" warning. It says `@trpc/next` is deprecated in favor of the TanStack React Query integration, and links to the Next.js App Router setup. No bug-fix-only or removal claim. - Pages Router: the sidebar and title say "(deprecated)". - "Using Next.js" in the top bar and phone menu now goes to [Set up with Next.js App Router](https://www-git-cursor-deprecate-trpc-next-8095-trpc.vercel.app/docs/client/nextjs/app-router-setup). It's the existing page that sets up `@trpc/tanstack-react-query` with Next.js. - Text that recommended `@trpc/next` for new projects now points to the App Router setup: - the Client overview - the Next.js overview: the Pages Router section and the tip - the Response Caching tip ## Links - [Pages Router setup](https://www-git-cursor-deprecate-trpc-next-8095-trpc.vercel.app/docs/client/nextjs/pages-router/setup): label and notice. - [SSR](https://www-git-cursor-deprecate-trpc-next-8095-trpc.vercel.app/docs/client/nextjs/pages-router/ssr): notice on a child page. - [Next.js](https://www-git-cursor-deprecate-trpc-next-8095-trpc.vercel.app/docs/client/nextjs#pages-router): Pages Router section and tip. - [Client overview](https://www-git-cursor-deprecate-trpc-next-8095-trpc.vercel.app/docs/client): Next.js sentence. - [Response Caching](https://www-git-cursor-deprecate-trpc-next-8095-trpc.vercel.app/docs/server/caching): Next.js tip. ## Screenshots The `@trpc/next` notice and sidebar label, light and dark:   "Using Next.js" opens the App Router setup, light and dark:   ## Alternatives considered None. ## Testing - `www`: `pnpm typecheck`, `pnpm lint`, `pnpm test`, `pnpm build` (with the legacy-URL check) and `pnpm check-twoslash` pass. - `pnpm format` and `pnpm validate-skills` pass. <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-bea99621-3942-5d29-8d59-e21921098095?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-bea99621-3942-5d29-8d59-e21921098095&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> <!-- codesmith:footer --> --- <a href="https://app.blacksmith.sh/trpc/codesmith/trpc/pr/7805?autoLogin=true&ref=codesmith_pr_footer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v3.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png" width="162" height="28"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1796213215&installation_model_id=443568&pr_number=7805&ref=codesmith_pr_footer&repository=trpc%2Ftrpc&return_to=https%3A%2F%2Fgithub.com%2Ftrpc%2Ftrpc%2Fpull%2F7805&signature=25c1bd954c013402788c954e1223991bf6e3994de5cb026d63d3434aeaaa87cc"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png" width="190" height="28"></picture></a> <sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup> <!-- codesmith:autofix:disabled --> <!-- /codesmith:footer --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Documentation** * Updated Next.js guidance to recommend the App Router setup with TanStack React Query. * Marked the Pages Router integration as deprecated, clarified that it receives bug fixes only and is slated for removal in the next major version, and linked to the recommended setup across relevant guides. * Retained the migration guide for existing Pages Router projects. * Clarified that the caching note applies to the deprecated Pages Router integration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Cursor Agent <[email protected]>
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> Reverts [trpc#7805](trpc#7805) (squash commit ad46ded). [trpc#7804](trpc#7804), which deprecates classic React Query, stays. ## Why We marked `@trpc/next` deprecated too soon. Its experimental App Router exports (`nextCacheLink`, `nextHttpLink`, `.revalidate()`, and the server action handler with `useAction`) have no TanStack replacement yet, so we can't tell people to move off it. This puts the docs back as they were until a replacement exists. ## What - `git revert` of ad46ded. It applied cleanly to main. - The Pages Router pages lose their "Deprecated" notice, and the sidebar and title lose "(deprecated)". - "Using Next.js" in the top bar goes to the Next.js overview again. - The Client overview, the Next.js overview and the Response Caching tip get their old Next.js wording back. The parts from trpc#7804 about classic React Query stay. ## Links - Docs: [Pages Router setup](https://www-git-cursor-revert-trpc-next-deprecation-8095-trpc.vercel.app/docs/client/nextjs/pages-router/setup): no notice, plain label. - Docs: [SSR](https://www-git-cursor-revert-trpc-next-deprecation-8095-trpc.vercel.app/docs/client/nextjs/pages-router/ssr): no notice. - Docs: [Next.js](https://www-git-cursor-revert-trpc-next-deprecation-8095-trpc.vercel.app/docs/client/nextjs) - [Pages Router](https://www-git-cursor-revert-trpc-next-deprecation-8095-trpc.vercel.app/docs/client/nextjs#pages-router): old wording, with the classic React Query note from trpc#7804. - Docs: [Client overview](https://www-git-cursor-revert-trpc-next-deprecation-8095-trpc.vercel.app/docs/client): old Next.js sentence. - Docs: [Response Caching](https://www-git-cursor-revert-trpc-next-deprecation-8095-trpc.vercel.app/docs/server/caching): old Next.js tip. ## Alternatives considered Keep the notice but soften it. We'd still be steering people away from features they can't replace, so it's better to remove it. ## Testing - `pnpm --filter www typecheck`, `lint` and `test`, plus `pnpm format` and `pnpm validate-skills`, all pass. <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-bea99621-3942-5d29-8d59-e21921098095?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-bea99621-3942-5d29-8d59-e21921098095&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> <!-- codesmith:footer --> --- <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1796234005&installation_model_id=443568&pr_number=7829&ref=codesmith_pr_footer&repository=trpc%2Ftrpc&return_to=https%3A%2F%2Fgithub.com%2Ftrpc%2Ftrpc%2Fpull%2F7829&signature=2a62d4d7019ff0e29b154e9b2857cb3181596ae6c1bc200b13f088a58f0ddef3"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png" width="190" height="28"></picture></a> <sup><a href="https://app.blacksmith.sh/trpc/codesmith/trpc/pr/7829?autoLogin=true&ref=codesmith_pr_footer">Open in [code]smith</a> · Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup> <!-- codesmith:autofix:disabled --> <!-- /codesmith:footer --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Documentation** * Updated Next.js guidance to distinguish the Pages Router integration from the recommended TanStack React Query integration: new projects are directed to TanStack React Query, while existing Pages Router users can find migration guidance. * Clarified that the Pages Router integration remains supported for existing projects, receives bug fixes, and is planned for removal in the next major version. * Updated related setup, SSR, SSG, aborting, and caching guidance to reflect these directions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Cursor Agent <[email protected]>
|
This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you. |
First of a stack of two, against
main. Next: #7805,@trpc/nextmarked deprecated. Merge them together.Why
@trpc/react-querynow only gets bug fixes, and will be removed in the next major version of tRPC.What
v11 docs only:
@trpc/tanstack-react-queryLinks
Screenshots
Sidebar and a deprecated page, light and dark:
Alternatives considered
stabilityfrontmatter: it shows on the page title, not the sidebar.Testing
www:pnpm typecheck,pnpm lint,pnpm test,pnpm build(with the legacy-URL check) andpnpm check-twoslashpass.pnpm formatandpnpm validate-skillspass.Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit