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
There is route with a path parameter parsing functionality and a child route defined
There is an error component defined for the said route
The child route has its component defined as lazily-loaded (lazyRouteComponent(...))
If parsing the path parameter causes an error, the RouterState.status stays pending indefinitely even though the app does not intent to show the lazily-loaded component.
Modify the preview window URL directly to include pathname /lang/es/lazy or /lang/es/eager (this is necessary to trigger a validation error in parameter parsing)
Observe the "router status" element at the top of the preview
Expected behavior
As a developer, I was expecting the router status to be "idle" on both cases (/lang/es/lazy and /lang/es/eager). However, in the lazy-loading case, the status stays "pending" indefinitely.
From what I can gather, the app does not initiate downloading the lazily-loaded component in this case.
Screenshots or Videos
Screen cap of the described behavior:
Screen.Recording.2025-06-16.at.22.55.52.mov
Platform
OS: I'm assuming this happens on every platform. I've reproduced this with macOS (15.5, M4)
Which project does this relate to?
Router
Describe the bug
Given the following scenario:
lazyRouteComponent(...))If parsing the path parameter causes an error, the
RouterState.statusstayspendingindefinitely even though the app does not intent to show the lazily-loaded component.Your Example Website or App
https://stackblitz.com/edit/github-x9j3pnhy?file=src%2Fmain.tsx
Steps to Reproduce the Bug or Issue
/lang/es/lazyor/lang/es/eager(this is necessary to trigger a validation error in parameter parsing)Expected behavior
As a developer, I was expecting the router status to be "idle" on both cases (
/lang/es/lazyand/lang/es/eager). However, in the lazy-loading case, the status stays "pending" indefinitely.From what I can gather, the app does not initiate downloading the lazily-loaded component in this case.
Screenshots or Videos
Screen cap of the described behavior:
Screen.Recording.2025-06-16.at.22.55.52.mov
Platform
Additional context
No response