TanStack / TanStack/router

route masking crashing when using tanstck start

Open
#3,123 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

start
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

https://stackblitz.com/edit/tanstack-router-5zxpayxd?file=app%2Froutes%2Fmodal.tsx,app%2Froutes%2F__root.tsx,app%2Frouter.tsx&preset=node

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.