Skip to main content

React Router 8.5.2

Release Date: November 18, 2026

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 dataStrategy navigation 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 HEAD request 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 run react-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 for null required parameters and omits null splat parameters without leaving a trailing slash, matching the existing undefined behaviour and the declared types (PR #15754).
  • Redirect helpers stop mutating their init object — redirect(), redirectDocument() and replace() no longer write status: 302 onto the ResponseInit you 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 new resolve value, so the error element disappears after navigating to a route whose data renders fine (PR #15695).
  • useBlocker staleness — 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 dev and react-router typegen stop 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 — loaderData and params are now passed to default, ErrorBoundary and HydrateFallback exports declared with re-exports such as export { default } from "./component" or local aliases (PR #15544).
  • Architect and Cloudflare adapters — @react-router/architect builds a valid request URL when the Host header is an IPv6 address such as [::1]:3333, and sendReactRouterResponse no longer throws TypeError: immutable when a fetch() response sets cookies (PR #15660, PR #15714).
  • Scaffolding resilience — create-react-router completes project creation when git add or 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.

Other Versions

We use cookies for ads and analytics.