React Router 8.5.2
React Router 8.5.2 shipped on November 18, 2026, three weeks after 8.5.1, and the patch reaches almost every package in the monorepo. The headline work is streamed response cleanup, safer form submissions when a basename is configured, and a run of development-mode hydration fixes in @react-router/dev.
- Navigation metadata after a failed action — when a submission action throws, the committed history action now drives loader
dataStrategynavigation types and loading navigation history actions, so router state no longer drifts from browser history (PR #15621). - HEAD response body cleanup — the discarded body of a
HEADrequest is cancelled, so a resource route that streams a file no longer leaks its file descriptor. Nested deferred rejections stay observed after cancellation and cannot crash the server (PR #15634). - Streamed Suspense hydration in development — the critical CSS reset is wrapped in
React.startTransition. React 19 no longer discards the server HTML and re-renders the boundary on the client when you runreact-router dev(PR #15382). - Root form actions with a basename — submissions that include search parameters or a hash in the action URL now resolve to the right path instead of the bare root (PR #15725).
href()and null parameters — the helper throws fornullrequired parameters and omitsnullsplat parameters without leaving a trailing slash, matching the existingundefinedbehaviour and the declared types (PR #15754).- Redirect helpers stop mutating their init object —
redirect(),redirectDocument()andreplace()no longer writestatus: 302onto theResponseInityou pass in. Later responses built from the same frozen object no longer throw (PR #15753). <Await>error recovery — a render error is cleared when the component receives a newresolvevalue, so the error element disappears after navigating to a route whose data renders fine (PR #15695).useBlockerstaleness — a blocker left behind by a hidden component no longer keeps blocking navigation after the component returns through<Activity>, or after the router is recreated (PR #15710).- Type generation lock — concurrent typegen runs are serialized so
react-router devandreact-router typegenstop racing on the filesystem. A lock that cannot be acquired within 30 seconds reports a timeout with cleanup instructions (PR #15293). - Route props through export specifiers —
loaderDataandparamsare now passed todefault,ErrorBoundaryandHydrateFallbackexports declared with re-exports such asexport { default } from "./component"or local aliases (PR #15544). - Architect and Cloudflare adapters —
@react-router/architectbuilds a valid request URL when theHostheader is an IPv6 address such as[::1]:3333, andsendReactRouterResponseno longer throwsTypeError: immutablewhen afetch()response sets cookies (PR #15660, PR #15714). - Scaffolding resilience —
create-react-routercompletes project creation whengit addor the initial commit fails, and derives the package name from the project directory basename instead of the raw path (PR #15737, PR #15698).
Install the patch with npm install [email protected]. Projects staying on the v7 line get the same fixes in 7.18.6, tagged the same day.