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
{{ message }}
Repository navigation
RouterState status stays "pending" indefinitely when showing an error component for a route that has lazy-loaded children #4444
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)
Activity
test: pin 24 community-reported issues fixed by the match-loading wor…