Which project does this relate to?
Router
Describe the bug
Before the latest "lane match loader rewrite" the pendingComponent from the RootRoute was only visible in the first load of the SPA. It was not visible during route transitions after the initial application load.
After the rewrite it's not possible anymore to have a initial pendingComponent, but not use it afterwards.
Complete minimal reproducer
https://stackblitz.com/edit/github-s5suhk5r-9udezxgo?file=src%2Froutes%2F__root.tsx
Steps to Reproduce the Bug
- The blue pendingComponent from index.html is shown
- The blue RootRoute pendingComponent is shown
- The start page is shown
- Navigating to the "About" page
- The RootRoute pendingComponent is shown again
Expected behavior
The pendingComponent of the RootRoute is shown only once during initial SPA load.
Screenshots or Videos
No response
Platform
- Router / Start Version: @tanstack/react-router@1.170.19
Additional context
No response
Which project does this relate to?
Router
Describe the bug
Before the latest "lane match loader rewrite" the pendingComponent from the RootRoute was only visible in the first load of the SPA. It was not visible during route transitions after the initial application load.
After the rewrite it's not possible anymore to have a initial pendingComponent, but not use it afterwards.
Complete minimal reproducer
https://stackblitz.com/edit/github-s5suhk5r-9udezxgo?file=src%2Froutes%2F__root.tsx
Steps to Reproduce the Bug
Expected behavior
The pendingComponent of the RootRoute is shown only once during initial SPA load.
Screenshots or Videos
No response
Platform
Additional context
No response