Tanstack router: Not a good experience so far.
My app is extremely simple and almost no code written.
"@tanstack/react-router": "^1.114.3",
"@tanstack/react-router-devtools": "^1.114.3",
"typescript": "^5.7.2",
"vite": "^6.1.0",
"react": "^19.0.0",
Could it be a problem because i am using docker?


3 Replies
deep-jadeOP•4mo ago
Also the route tree gen is making constant mistakes:

quickest-silver•4mo ago
Your vite server really shouldn't restart whenever you change a route, something odd's going on with your config. Can you give a reproduction? Feels like a vite issue and not a router issue.
I don't know if you're still on the tanstack router train, but the route tree gen issue might be caused by using the VSCode "Update Imports on rename" functionality
I think VSCode updates the routeTree at the same time the generator is updating the file, causing things to get in a completely broken state
The vite restart could possibly also be a side-effect of that, not sure
absent-sapphire•4mo ago
The VSCode dual write problem is mentioned in the Installation with Vite article, hopefully that settings snippet should help