Skip to content

[DOCS] Fixed tanstack setup next page - #6702

Merged
KATT merged 4 commits into
trpc:mainfrom
nisabmohd:main
May 26, 2025
Merged

KATT merged 4 commits into
trpc:mainfrom
nisabmohd:main

Conversation

@nisabmohd

@nisabmohd nisabmohd commented Apr 12, 2025 •

Copy link
Copy Markdown
Contributor

🎯 Changes

Fixed the tanstack-query setup next page which was again taking to same page, and removed unused imports

βœ… Checklist

  • [βœ…] I have followed the steps listed in the Contributing guide.
  • [βœ…] If necessary, I have added documentation related to the changes made.

Summary by CodeRabbit

  • Documentation
    • Updated the TanStack React Query navigation in the sidebar so that it now directs users to a centralized index page with a refined title and URL. This change enhances the ease of discovering related documentation content.
  • Code Improvements
    • Removed the unused useTRPC hook import from the main application component to streamline the codebase.

Fixed the tanstack-query setup next page which was again taking to same page, and removed unused imports
@nisabmohd
nisabmohd requested a review from a team as a code owner April 12, 2025 07:13
@vercel

vercel Bot commented Apr 12, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
www βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback May 26, 2025 0:23am

@vercel

vercel Bot commented Apr 12, 2025

Copy link
Copy Markdown

@nisabmohd is attempting to deploy a commit to the trpc Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Apr 12, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

The pull request removes the unused useTRPC hook import from the components/App.tsx file, keeping only the TRPCProvider for context setup. It also updates the sidebar configuration in www/sidebars.ts for the TanStack React Query category by changing the link type from a direct document reference to a generated index and revising the title and slug accordingly.

Changes

File Change Summary
components/App.tsx Removed the useTRPC import from the TRPC module; retained TRPCProvider for context setup.
www/sidebars.ts Updated the TanStack React Query sidebar link: changed from a static doc link to a generated index with a new title and slug.

Poem

Hop along the code trail, light on my feet,
I nibble away unused hooks, keeping things neat.
The sidebar now sings with a brand new tune,
As indexes are born β€˜neath a codeful moon.
With joyful hops and ASCII delight, I celebrate changes all day and night! 🐰✨


πŸ“œ Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between ae6936b and 3359d45.

πŸ“’ Files selected for processing (1)
  • www/sidebars.ts (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Analyze (typescript)
  • GitHub Check: test
  • GitHub Check: Lint and auto-fix
πŸ”‡ Additional comments (1)
www/sidebars.ts (1)

83-85: LGTM! This change improves navigation UX.

The conversion from a direct document link to a generated index page effectively addresses the navigation issue described in the PR. Users clicking on "TanStack React Query (⭐️)" will now be directed to an overview page at /client/tanstack-react-query rather than being dropped directly into the setup documentation. This provides better navigation flow while keeping the setup page accessible as a category item.

✨ Finishing Touches
  • πŸ“ Generate Docstrings

πŸͺ§ Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@nisabmohd

Copy link
Copy Markdown
Contributor Author

image

@pkg-pr-new

pkg-pr-new Bot commented Apr 12, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/trpc/trpc/@trpc/client@6702

@trpc/next

npm i https://pkg.pr.new/trpc/trpc/@trpc/next@6702

@trpc/server

npm i https://pkg.pr.new/trpc/trpc/@trpc/server@6702

@trpc/react-query

npm i https://pkg.pr.new/trpc/trpc/@trpc/react-query@6702

@trpc/tanstack-react-query

npm i https://pkg.pr.new/trpc/trpc/@trpc/tanstack-react-query@6702

@trpc/upgrade

npm i https://pkg.pr.new/trpc/trpc/@trpc/upgrade@6702

commit: b6159a5

@KATT
KATT enabled auto-merge (squash) May 26, 2025 11:48
@github-actions

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 27, 2025

This branch was successfully deployed

2 active deployments
Preview – www β€” b6159a5f Deployed May 26, 2025 by vercel[bot]
Preview – trpc-next-app-dir β€” b6159a5f Deployed May 26, 2025 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants