TanStack / TanStack/router

Start: Ssr doesn't reflect changes with `bundledDev: true`

Open
#7,535 0 comments 0 reactions 0 assignees View on GitHub

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

Ssr content does not appear to reflect changes to source files when the vite config experimental: { bundledDev: true } is enabled.

Hmr updates to the files does appear to work as expected. It is only the server side content that doesn't update.

Complete minimal reproducer

https://github.com/CamBurris/tanstack-start-bundled-dev

Steps to Reproduce the Bug
  1. Clone repo and install deps
  2. Start with npm run dev
  3. Make a change to a file that will appear on the page. I used routes/index.tsx.
  4. You will see the page updated via hmr to reflect the change.
  5. Reload the page in the browser. You will see the ssr version of the page is not updated.
Expected behavior

Ssr version of page should reflect changes to files.

Screenshots or Videos

No response

Platform
  • Router / Start Version: 1.170.11
  • OS: macOS
  • Browser: Chrome
  • Browser Version: 148
  • Bundler: vite
  • Bundler Version: 8.0.16
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 minimal reproducer and its Vite config using experimental: { bundledDev: true }; run npm run dev and edit routes/index.tsx. Compare the HMR result with a browser reload, then trace the bundled development SSR entry point to identify why server-rendered content stays stale. Done means reloads reflect source changes while HMR continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
backend, build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.