Skip to content

docs: add router-link coexistence demo and replace gotcha#2

Merged
babu-ch merged 4 commits intomainfrom
feat/router-link-coexistence
Mar 31, 2026
Merged

docs: add router-link coexistence demo and replace gotcha#2
babu-ch merged 4 commits intomainfrom
feat/router-link-coexistence

Conversation

@babu-ch
Copy link
Copy Markdown
Owner

@babu-ch babu-ch commented Mar 31, 2026

Summary

  • Add <router-link> to playground nav (Home, Internal, External) to demonstrate coexistence with the interceptor
  • Add "Router Link coexistence" and "Gotcha: router-link replace" sections to Internal Links page
  • Show data-no-intercept workaround for preserving RouterLink props like replace
  • Add "Framework Router Coexistence" section to README

Test plan

  • Run pnpm test — all pass
  • Start playground (pnpm -C playground dev), go to /internal
  • Verify nav <router-link> links work (Home, Internal, External)
  • Verify "Router Link coexistence" section shows both link types working
  • Verify "Gotcha" section: click the data-no-intercept replace link, then Back button — should NOT return to Internal page

Related: #1

🤖 Generated with Claude Code

Demonstrate that the interceptor works alongside <router-link> in the
playground. Add a gotcha section showing that <router-link replace> loses
its replace behavior when the callback calls preventDefault() + router.push(),
and show the data-no-intercept workaround. Add a Framework Router Coexistence
section to the README.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@babu-ch babu-ch changed the title Add router-link coexistence demo and replace gotcha docs: add router-link coexistence demo and replace gotcha Mar 31, 2026
babu-ch and others added 3 commits March 31, 2026 20:13
…arify stripBase

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@babu-ch babu-ch merged commit ce2fb26 into main Mar 31, 2026
1 check passed
@babu-ch babu-ch deleted the feat/router-link-coexistence branch March 31, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant