Which project does this relate to?
Router
Describe the bug
With defaultPendingMs: 0, defaultPendingMinMs: 0 and a defaultPendingComponent, every navigation to a code-split route briefly shows the pending UI, even when the route was previously visited. In 1.170.18, the same config did not flash at all. See differences in videos attached.
Complete minimal reproducer
https://github.com/djlguzman/tanstack-start-pending-component-flash
Steps to Reproduce the Bug
- Clone repo from: https://github.com/djlguzman/tanstack-start-pending-component-flash
- run
pnpm install
- run
pnpm dev
- Changing from "Home" and "Test" pages (with SLOW network if possible) will only showing the pending component ONCE.
- run
pnpm add @tanstack/react-devtools@0.10.10 @tanstack/react-router@1.170.27 @tanstack/react-router-devtools@1.167.1 @tanstack/react-start@1.168.44
- run
pnpm add -D @tanstack/devtools-vite@0.8.3 @tanstack/router-cli@1.167.28
- run
pnpm dev
- It should be broken by now and pending UI will get shown at all navigation.
Expected behavior
At version 1.170.18, previously loaded routes won't show the pending UI at all when revisited which I believe is the correct way. With the succeeding versions, pending UI shows all the time when visiting routes.
Screenshots or Videos
https://github.com/user-attachments/assets/7938f91f-d3c4-42bd-afd3-58365dc2cabd
https://github.com/user-attachments/assets/be3c35fd-a8eb-420c-b92b-5f10cffc096d
Platform
- Router / Start Version: @tanstack/react-router@1.170.27
- OS: macOS
- Browser: Chrome
- Browser Version: Version 151.0.7922.137
- Bundler: vite
- Bundler Version: 8.0.0
Additional context
I've already read related issues about this which were already closed but seems this may be a different issue as I still experience this flickering issue even with the latest tanstack router version installed. Thank you very much!
Which project does this relate to?
Router
Describe the bug
With
defaultPendingMs: 0,defaultPendingMinMs: 0and adefaultPendingComponent, every navigation to a code-split route briefly shows the pending UI, even when the route was previously visited. In 1.170.18, the same config did not flash at all. See differences in videos attached.Complete minimal reproducer
https://github.com/djlguzman/tanstack-start-pending-component-flash
Steps to Reproduce the Bug
pnpm installpnpm devpnpm add @tanstack/react-devtools@0.10.10 @tanstack/react-router@1.170.27 @tanstack/react-router-devtools@1.167.1 @tanstack/react-start@1.168.44pnpm add -D @tanstack/devtools-vite@0.8.3 @tanstack/router-cli@1.167.28pnpm devExpected behavior
At version 1.170.18, previously loaded routes won't show the pending UI at all when revisited which I believe is the correct way. With the succeeding versions, pending UI shows all the time when visiting routes.
Screenshots or Videos
https://github.com/user-attachments/assets/7938f91f-d3c4-42bd-afd3-58365dc2cabd
https://github.com/user-attachments/assets/be3c35fd-a8eb-420c-b92b-5f10cffc096d
Platform
Additional context
I've already read related issues about this which were already closed but seems this may be a different issue as I still experience this flickering issue even with the latest tanstack router version installed. Thank you very much!