You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
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 containsbeforeLoad()
, and noticed the option doesn't seem to have any effect—i.e.,pendingComponent
is 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
pendingMs
insrc/routes/index.tsx
is 1000000beforeLoad()
case)Expected behavior
When
RouteOptions.pendingMs
is specified, thependingComponent
should not be shown unless theloader
orbeforeLoad
takes longer than specified pendingMs.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: