-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Which project does this relate to?
Router
Describe the bug
when rendering a lot of <Link>s at once, some take up to 8ms to render, resulting in ui stutters
Your Example Website or App
https://stackblitz.com/edit/vitejs-vite-q4irqygh
Steps to Reproduce the Bug or Issue
- open the linked repro
- click "show many"
- notice how it takes a bit of time for stuff to render
- try replacing tanstack router links with simple manual
<a>links, notice how everything becomes instant
Screen.Recording.2025-11-12.at.01.54.43.mov
Expected behavior
i expect tanstack router to not have that much of overhead over manual <a> elements with an onClick
Screenshots or Videos
No response
Platform
- Router / Start Version: 1.135.2
- OS: macOS (M3 Max)
- Browser: Chrome
- Browser Version: 141
- Bundler: vite
- Bundler Version: 7.2.2
Additional context
trace from chrome performance tab: Trace-20251112T014637.json