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
Context is missing from parent loader when child's validateSearch fails #4696
When a parent route (in my case, the root route) has a beforeLoad parameter, the parent route's loader's context is missing expected attributes when a child route's validateSearch fails.
Remove the query parameters from the URL and press enter (to navigate directly to /dashboard with no query params)
You will not see the Navbar anymore 🐛
Expected behavior
I expected the parent route's loader to have the values of the context that were returned by the same route's beforeLoad but the attributes are missing.
My super awesome coworker @danconnell found out that this behaviour doesn't occur in 1.121.14, but it does on the Stackblitz instance which is 1.128.3, so I will do a bit more work to figure out when it started happening again.
Activity
Dakkers commentedon Jul 18, 2025
My super awesome coworker @danconnell found out that this behaviour doesn't occur in 1.121.14, but it does on the Stackblitz instance which is 1.128.3, so I will do a bit more work to figure out when it started happening again.
Dakkers commentedon Jul 18, 2025
It seems that the bug started occurring again in version 1.123.2. (1.123.0 had no issues.)
I would assume it's because of this PR because it makes modifications to
beforeLoad/loaderlogic: #4550schiller-manuel commentedon Jul 18, 2025
could you add a failing unit test via a PR?
test(router-core): add initial tests for router behavior (#4993)
Dakkers commentedon Sep 24, 2025
@schiller-manuel This may have been resolved by now, but I'm not 100% sure how to verify this with the CI. My PR is here: #4726
test: pin 24 community-reported issues fixed by the match-loading wor…