docs(start): document links to server-only routes #8865
main fromrefs/pull/8865/head·opened 🎯 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 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.mdThe guide directs users to use <a href>for server-only routes and explains thatreloadDocumentdoes not change URL construction. It also notes that URLs must include transformations applied by parentparams.stringify.Estimated code review effort: 1 (Trivial) | ~4 minutes
Change: Other
Suggested labels:
documentation
Merge Risk:
Minimal · up to78fa3-
The documentation update is ready to merge.
Pre-merge checks:
4-
Check name Status Explanation Title check 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 not… Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Description check 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 … 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.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: TanStack/router
- Branch: main
- File: .coderabbit.yaml
- Commit: 01fab5a
- Layers: Repository YAML
- Review profile: CHILL
- Plan: Advanced
- Run ID:
e20a3e6e-caa5-4b61-b3f7-1f0b55da0bfe
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.
⚠️ 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