Skip to content
Source
Sign inSign up
TanStack/router

docs(start): document links to server-only routes #8865

Openadityareddy-dev(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/8865/headopened

🎯 Changes

The server routes guide didn't say that <Link> doesn't work for routes that only have server handlers. Added a plain <a href> example, and a note that the link needs the final public URL when a parent route changes path params with params.stringify.

Refs https://github.com/TanStack/router/issues/7877

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with the relevant test commands, or tests do not apply to this pull request.
  • I fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).
    1. ⚠️ No Changeset found

      Latest commit: 78fa3764d6e5c6fc6a979dfa99232b6085190c36

      Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

      This PR includes no changesets

      When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

      Click here to learn what changesets are, and how to add one.

      Click here if you're a maintainer who wants to add a changeset to this PR

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Explain Change →

      No actionable comments were generated in the recent review.

      Walkthrough

      The React server-routes guide adds instructions for linking to server-only routes and constructing their public URLs when parent parameter stringification applies.

      Changes: Server-route navigation

      Layer / File(s)Summary
      Document server-route links
      docs/start/framework/react/guide/server-routes.md
      The guide directs users to use <a href> for server-only routes and explains that reloadDocument does not change URL construction. It also notes that URLs must include transformations applied by parent params.stringify.

      Estimated code review effort: 1 (Trivial) | ~4 minutes

      Change: Other

      Suggested labels: documentation

      Merge Risk: Minimal · up to 78fa3

      The documentation update is ready to merge.

      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Title checkPassedThe title "docs(start): document links to server-only routes" matches the change. The raw summary says the PR adds guidance on linking to server-only routes, including a plain anchor example and a not…
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Description checkPassedThe description follows the required template. It explains the documentation change and motivation, references the related issue, completes all checklist items, and correctly identifies the change as …
      Full details: Title check

      Explanation

      The title "docs(start): document links to server-only routes" matches the change. The raw summary says the PR adds guidance on linking to server-only routes, including a plain anchor example and a note on reloadDocument and parent params.stringify. The title names the main change and is specific. It uses a conventional commit prefix, which is acceptable.

      Full details: Description check

      Explanation

      The description follows the required template. It explains the documentation change and motivation, references the related issue, completes all checklist items, and correctly identifies the change as documentation-only with no release impact.

      Finishing Touches
      Generate unit tests (beta)
      • 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.

      Share
      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between 01fab5a6c8aed70d61d82c64bc344cbac66c240c and 78fa3764d6e5c6fc6a979dfa99232b6085190c36.

      Files selected for processing: 1
      • docs/start/framework/react/guide/server-routes.md

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Sign in to join this conversation.