-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
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
pendingMsinsrc/routes/index.tsxis 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
angelsvirkov, PeretEtienne, pascalmtts, MGRatEJOT, vetledv and 2 moreshongs27, onehorsetown and mwood23
Metadata
Metadata
Assignees
Labels
No labels