Which project does this relate to?
Router
Describe the bug
With beforeLoad defined for createRootRoute, it never shows pendingComponent.
It was already a thing for #1104, but it was closed as completed.
Your Example Website or App
https://stackblitz.com/edit/tanstack-router-67wvqt?file=src%2Froutes%2F__root.tsx&preset=node
Steps to Reproduce the Bug or Issue
- Open reproduction
- For 3000ms it shows blank page, after 3000ms it shows "Root"
Expected behavior
As a user, I expect to see "Root pending" while beforeLoad is pending. Doc describe it as a feature: Before load docs. It's useful, because user authentication happens during beforeLoad
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: Chrome
- Version: 131.0.6778.86
@tanstack/react-router version: ^1.85.0
Additional context
No response
Which project does this relate to?
Router
Describe the bug
With
beforeLoaddefined forcreateRootRoute, it never showspendingComponent.It was already a thing for #1104, but it was closed as completed.
Your Example Website or App
https://stackblitz.com/edit/tanstack-router-67wvqt?file=src%2Froutes%2F__root.tsx&preset=node
Steps to Reproduce the Bug or Issue
Expected behavior
As a user, I expect to see "Root pending" while
beforeLoadis pending. Doc describe it as a feature: Before load docs. It's useful, because user authentication happens duringbeforeLoadScreenshots or Videos
No response
Platform
@tanstack/react-routerversion: ^1.85.0Additional context
No response