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
When loading a route that doesn't exist in the route definition (logging No routes matched location..., I expect that the errorElement or ErrorBoundary is rendered
when doing a client-side navigation to the not found route
when reloading the page at the not found route
Actual Behavior
The errorElement/ErrorBoundary is rendered when doing a client-side navigation but not when reloading the page. Note that this only seems to break when the route has a loader defined — without it, both expectations are met.
This means that a user who mistypes a route or uses an outdated bookmark will get a white screen instead of 404 UI.
This worked in 7.1.3 but is broken in 7.1.4 onwards.
The text was updated successfully, but these errors were encountered:
I'm using React Router as a...
library
Reproduction
Repository
Core reproduction code:
System Info
Used Package Manager
npm
Expected Behavior
When loading a route that doesn't exist in the route definition (logging
No routes matched location...
, I expect that theerrorElement
orErrorBoundary
is renderedActual Behavior
The
errorElement
/ErrorBoundary
is rendered when doing a client-side navigation but not when reloading the page. Note that this only seems to break when the route has aloader
defined — without it, both expectations are met.This means that a user who mistypes a route or uses an outdated bookmark will get a white screen instead of 404 UI.
This worked in 7.1.3 but is broken in 7.1.4 onwards.
The text was updated successfully, but these errors were encountered: