Skip to content

About

Minimal TanStack Start reproduction for the @tanstack/devtools-vite console feedback loop

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

TanStack Devtools Vite console feedback-loop reproduction

Minimal reproduction for TanStack/devtools#482. It uses TanStack Start and @tanstack/devtools-vite, with no Paraglide dependency.

Reproduce

pnpm install
pnpm dev

Open the URL printed by Vite (normally http://localhost:5173) and watch the terminal and browser console.

The route intentionally renders different text on the server and client:

const runtime = typeof window === 'undefined' ? 'server' : 'client'

React reports one hydration mismatch. With devtools() enabled in vite.config.ts, that error is repeatedly forwarded between Vite's client and server console bridges, producing increasingly nested messages such as:

[Server] [console.error] [Server] [console.error] ...

Stop the dev server promptly after confirming the loop because its output grows quickly.

Control

Remove devtools() from the plugin list in vite.config.ts and remove its import, then restart the server. The hydration error is logged once and the server remains responsive.

Tested versions

  • @tanstack/devtools-vite 0.8.3
  • @tanstack/react-start 1.168.44
  • @tanstack/react-router 1.170.27
  • Vite 8.2.1
  • React 19.2.8

About

Minimal TanStack Start reproduction for the @tanstack/devtools-vite console feedback loop

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages