react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
In short
14 fixed
Release note
The section about react-router of a note shared by several packages.
Patch Changes
Keep navigation metadata consistent after a submission action throws an error
Use the committed history action for loader
dataStrategynavigation types and loading navigation history actions
Cancel the discarded response body for
HEADrequests, so a resource route streaming a file no longer leaks its file descriptorKeep observing nested deferred promise rejections after cancelling a data response so they cannot crash the server
Preserve streamed
<Suspense>boundaries during hydration in developmentWrap the critical CSS reset in
React.startTransitionto prevent React 19 from silently discarding the server HTML and rendering the boundary on the client
Fix submissions to root form actions containing search parameters or a hash when a
basenameis configuredFix
href()to throw fornullrequired parameters and omitnullsplat parameters without a trailing slash, matching the behavior forundefinedand the defined typesFix generated
MetaArgs.matchestypes to stop at the current route instead of appending an unknown, possibly undefined tailImprove path generation and URL validation across
href(),generatePath(), links, forms, fetchers, and redirectsStop
redirect(),redirectDocument()andreplace()from settingstatus: 302on theResponseInitpassed to themLater responses created from the same init object no longer get status 302, and a frozen init no longer throws
Clear an
<Await>render error when it receives a newresolvevalue, so the error element no longer stays on screen after navigating to a route whose data renders fineRun
clientMiddlewareduring RSC client navigations and preserve it when route components update via HMRHandle
HEADresource responses consistently in RSC Framework and RSC Data modesFix initial rendering of RSC routes with a
clientLoaderand noHydrateFallbackFix
<ScrollRestoration>throwing an uncaught error before hydration whensessionStorageis unavailableThe inline restore script already logged the storage error, but its cleanup call accessed
sessionStorageagain and threw (e.g. Chrome with "Block all cookies", sandboxed cross-origin iframes)The error is still logged with
console.error; only the second, uncaught throw is removed
Fix
useBlockerleaving behind a stale blocker that keeps blocking navigation after its component is hidden and shown again with<Activity>, or after the router is recreated
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.