Which project does this relate to?
Router
Describe the bug
Hey guys, I was trying to use RouteOptions.pendingMs in one of my FileRoute that contains beforeLoad(), and noticed the option doesn't seem to have any effect—i.e., pendingComponent is shown immediately no matter the value provided to pendingMs (0 or 100000).
This is also the case for RouteOptions.loader() as well.
Your Example Website or App
https://stackblitz.com/edit/vitejs-vite-omuhov?file=src%2Froutes%2Findex.tsx
Steps to Reproduce the Bug or Issue
- refresh the preview browser on the right in the stackblitz sandbox at '/'
- see if 'Loading...' text is shown immediately after the refresh
- check
pendingMs in src/routes/index.tsx is 1000000
- do the same for '/about' route (for
beforeLoad() case)
Expected behavior
When RouteOptions.pendingMs is specified, the pendingComponent should not be shown unless the loader or beforeLoad takes longer than specified pendingMs.
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: Chrome
- Version: 130.0.6723.70
Additional context
No response
Which project does this relate to?
Router
Describe the bug
Hey guys, I was trying to use
RouteOptions.pendingMsin one of my FileRoute that containsbeforeLoad(), and noticed the option doesn't seem to have any effect—i.e.,pendingComponentis shown immediately no matter the value provided topendingMs(0 or 100000).This is also the case for
RouteOptions.loader()as well.Your Example Website or App
https://stackblitz.com/edit/vitejs-vite-omuhov?file=src%2Froutes%2Findex.tsx
Steps to Reproduce the Bug or Issue
pendingMsinsrc/routes/index.tsxis 1000000beforeLoad()case)Expected behavior
When
RouteOptions.pendingMsis specified, thependingComponentshould not be shown unless theloaderorbeforeLoadtakes longer than specified pendingMs.Screenshots or Videos
No response
Platform
Additional context
No response