mirror of
https://github.com/horizon-rust/horizon-site.git
synced 2026-12-03 19:12:41 +07:00
[PR #41] [MERGED] Docs: read the current path inside Suspense so doc pages render again #43
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-site#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/horizon-rust/horizon-site/pull/41
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111
Base:
main← Head:fix/docs-suspense-pathname📝 Commits (1)
28ac633Docs: read the current path inside Suspense so doc pages render again📊 Changes
2 files changed (+36 additions, -6 deletions)
View changed files
📝
components/docs-nav.tsx(+18 -3)📝
components/site-header.tsx(+18 -3)📄 Description
Why
Every page under https://playhorizon.dev/docs/ (install, hosting, mods…) answers 500 and shows a blank page (reported in Discord). Railway logs:
Route "/docs/[...slug]": Next.js encountered URL data usePathname() in a Client Component outside of <Suspense>(CLIENT_HOOK_DYNAMIC) fromcomponents/docs-nav.tsxandcomponents/site-header.tsx.What
Both components read the path in a small child rendered inside
<Suspense>. The fallback renders the same markup with an empty path (no link marked as current). Nothing changes visually once the path streams in. No design change.Checks
npm run lint,npm run build: pass.next startlocally: /docs/install, /docs/hosting, /docs/mods, /docs, /hub, / all 200. No CLIENT_HOOK error in the server log.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.