Repository navigation
fix: prevent framework documentation page from freezing on link hover - #1010
Manishkumarbingi wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
@tannerlinsley Please have a look at this PR , If not required feel free to close this PR. |
|
I reproduced the production freeze today, but preload={false} only avoids the redirect during hover. The card currently builds /router/latest/docs/framework/{framework}/quick-start from the Router installPath. The Router library beforeLoad then always redirects every non-example framework guide to /router/latest/docs/quick-start. Opening that canonical path directly is responsive and lands on the same page. Please point the Router installPath at quick-start instead of disabling preloading on both links, add focused coverage for the emitted Router install href, and update the PR to close #1001. This preserves intent preloading and removes the unnecessary client redirect. I also checked #990 and #866 so this direction keeps the earlier quick-start correction while avoiding the redirect path that caused the same class of freeze. |
… disabling preload
75e060c to
c4f8ab5
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Thanks for reproducing this and finding the actual cause — you're right, the redirect was the real issue. Traced it through FrameworkCard → getFrameworkDocsPath → the base router object in libraries.ts, which had installPath: 'framework/$framework/quick-start'. Confirmed against the router repo's docs that there's no per-framework quick-start.md (only the canonical one), so that path always triggered the loader redirect. Pushed a fix pointing installPath at quick-start, reverted the preload={false} change, and added a focused unit test on the emitted install href for both frameworks. PR description updated to close #1001. |
|
|
I merged current main locally and ran the full pnpm test suite successfully: typechecking, lint, 553 unit tests, 2,269 chat tests, and 20 desktop tests passed. The focused checks cover React and Solid quick-start paths, and the upstream Router tree contains the canonical docs/router/quick-start.md. I used GitHub’s normal branch update to bring this PR current. The new head is 8100f6f, and its tree exactly matches the locally tested merge. The PR, autofix, and security workflows now report action_required for the fork, so this remains open pending workflow approval and passing checks. No checks were bypassed. |
Summary
Root cause: Router's Quick Start doc is canonical and not split per framework, so installPath: 'framework/$framework/quick-start' pointed FrameworkCard's link at a doc that doesn't exist. The docs loader redirected away from it, and that redirect firing on hover/preload is what froze the page.
Fix: point installPath at the canonical quick-start doc instead of disabling preload. Added focused test coverage on the emitted install href per review feedback.
Closes #1001
Summary by CodeRabbit
Summary