route masking crashing when using tanstck start
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.1k
- Forks
- 1.9k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 143
Description
Which project does this relate to?
Start
Describe the bug
Hey guys,
I am trying to follow the route masking documentation in a tanstack start project but I get a Could not find a client-side match for dehydrated match with id: /modal! error. This error only appears in a tanstack start project and not in a tanstack router.
Your Example Website or App
Steps to Reproduce the Bug or Issue
- click the modal link
- refresh the page
Expected behavior
the page should show the modal dialog
Screenshots or Videos
https://github.com/user-attachments/assets/143e96cc-8eeb-47a1-bae6-460b5521ac09
Platform
- OS: [nixos]
- Browser: [chrome]
- Version: [Version 131.0.6778.108 (Official Build) (64-bit)]
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked reproduction and inspect app/routes/modal.tsx, app/routes/__root.tsx, and app/router.tsx. Reproduce the issue by opening the modal link and refreshing the page in TanStack Start, then compare the result with TanStack Router. Done means the refreshed page displays the modal dialog without the dehydrated-match error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, full-stack
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100