react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
8.5.2 is the newest release of 8.x.
In short
1 new16 fixed
Release note
The section about react-router of a note shared by several packages.
Patch Changes
Fix
URIError: URI malformedwhen anssr: falsedev server receives a URL path with a malformed percent-encodingBound server route manifest processing for paths with expensive route expansion
Fall back to initial route discovery during server rendering and RSC document/data requests
Account for the number and depth of candidate branches when using regex matching
Encode commas within paths sent to the lazy route discovery manifest endpoint so routes with commas in their paths are discovered correctly
Fix fetcher revalidation errors bubbling to the root error boundary instead of the nearest boundary above the route that owns the fetcher
Avoid duplicate history entries when posting a
<Form>to the current URL with an encodedactionReplace the current history entry when the
actioncontains characters that get percent-encoded, such as spaces or non-ASCII characters
Fix an unhandled promise rejection when the browser skips a
viewTransitionnavigation, for example in a hidden tabBubble rejected
lazy.Componentimports on loader-less routes to the nearest error boundaryRender the error boundary instead of a blank page
Preserve pending fetcher mutation revalidation when an older navigation or background reload completes to prevent stale loader data
Keep newer fetcher loads cancellable and preserve them when earlier revalidations finish or abort, preventing older responses from overwriting fresh fetcher data
Retry rejected
lazyroute imports instead of caching failures permanentlyRevalidate loader data when a fetcher action redirect is not followed
Revalidate when an action redirect is ignored because a newer navigation started or the fetcher unmounted while the action was running
Include shared parent loaders when another navigation completed while the action was running
Continue to respect
shouldRevalidateReturn fetchers to
idlewhen a revalidation completes a pending navigation started by another fetcher's redirect
Avoid adding an incompatible
document.startViewTransition()overload to the globalDocumenttypeAllow transition results to be assigned to the DOM
ViewTransitiontype
Skip
deleteDataindestroySessionwhen the session has no IDAvoid failures when destroying a session without a cookie on storage that rejects an empty key
Surface the host's 404 response when a SPA fallback route has no prerendered data
Request single-fetch
.datafiles for hydrating routes with a serverloaderin anssr: falseapp with aprerenderconfigAvoid the internal "No result found for routeId" error for non-prerendered parameterized paths served via the SPA fallback
Improve turbo-stream decoding validation and object property handling
Unstable Changes
⚠️ Unstable features are not recommended for production use
Add an opt-in
<Await unstable_promise={promise}>implementation based on React'suse()APIUse
React.useinstead of React Router's internal promise trackingAccept promise-like values and retain
errorElement,useAsyncValue, anduseAsyncErrorsupportHandle only promise rejections with
errorElementwhen usingunstable_promise, allowing child render errors to bubble to the nearest React error boundaryTrack streamed promises during decoding so settled server content stays visible during hydration updates with either Await API or direct
React.use()
Fix
URIError: URI malformedwhen an API-only (ssr: "unstable_api-only") server receives a URL path with a malformed percent-encodingFix duplicate headers when throwing a redirect from an RSC server function
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.