React Router shipped v8.5.3 on 24 November 2026, with a matching v7.18.7 for apps still on the v7 line. It is a patch release, so nothing breaks, but the changelog is unusually long and several fixes target bugs you may have been working around: navigation options silently dropped inside descendant <Routes>, <Link download> being hijacked by the router, useBlocker firing twice, a Safari history.replaceState() limit loop, and more.
This guide groups the most useful fixes by symptom, shows the code patterns that now work as you would expect, and gives you a quick upgrade checklist.
Upgrade
npm install [email protected]
# Framework mode projects should also bump the dev tooling
npm install -D @react-router/[email protected]
Still on v7? The v7 line got its own patch the same day:
npm install [email protected]
Keep all react-router and @react-router/* packages on the same version to avoid duplicate router contexts.
1. Navigation options now reach the router from descendant <Routes>
If you use Data or Framework mode with nested <Routes> inside a route component, options passed to <Link>, useNavigate() or useSearchParams() were not all forwarded. In 8.5.3, <RouterProvider>‘s internal navigator.push() and navigator.replace() forward all NavigateOptions to router.navigate() (#15781). Options such as viewTransition, flushSync, mask and defaultShouldRevalidate now work there:
// Inside a component rendered by a parent route, using descendant <Routes>
import { Routes, Route, Link, useNavigate } from 'react-router';
function Settings() {
const navigate = useNavigate();
return (
<>
<Link to="profile" viewTransition>Profile</Link>
<button onClick={() => navigate('billing', { flushSync: true })}>
Billing
</button>
<Routes>
<Route path="profile" element={<Profile />} />
<Route path="billing" element={<Billing />} />
</Routes>
</>
);
}
If you previously disabled view transitions in nested sections because “they don’t work there”, try turning them back on.
2. <Link download> lets the browser download the file
Clicking a link with a download attribute is now left to the browser instead of being treated as a client-side navigation (#15815). This also applies to custom links built with useLinkClickHandler.
<Link to="/reports/2026-11.csv" download>
Download November report
</Link>
You can remove workarounds such as reloadDocument or a plain <a> tag that you added only for downloads.
3. Form submissions and fetchers behave more predictably
Several fixes make data mutations less surprising:
actionDatastays put while a submission to another route is loading (#15716), so an inline success message does not vanish too early.- Loader data is preserved when a background fetcher finishes during a navigation (#15806), which keeps layout content visible instead of flashing.
- No stale matches: fetcher action revalidation can no longer complete a navigation with stale route matches while lazy route discovery is pending (#15731).
encTypeis case-insensitive in<Form>anduseSubmit(#15776).Multipart/Form-Datais now submitted asmultipart/form-data.
<Form method="post" encType="multipart/form-data">
<input type="file" name="avatar" />
<button type="submit">Upload</button>
</Form>
4. Blocking and history edge cases
useBlockerno longer blocks twice when the destination route updates search params in a mount effect (#15538).- Memory routers: blocked back/forward navigations no longer land on the wrong entry when the delta goes past the first or last entry (#15779). This mostly helps tests.
- Safari loop fixed:
<HydratedRouter>no longer re-renders the previous route during navigation (#15823). That avoids a loop with<Navigate state={...} replace>that could exceed Safari’s limit onhistory.replaceState()calls. - Masked hash history entries restore the router location on back/forward (#15771).
- Scroll restoration: invalid persisted scroll positions are discarded so new ones can be saved (#15794).
A typical “unsaved changes” guard now behaves consistently:
import { useBlocker } from 'react-router';
function Editor({ isDirty }) {
const blocker = useBlocker(
({ currentLocation, nextLocation }) =>
isDirty && currentLocation.pathname !== nextLocation.pathname
);
return blocker.state === 'blocked' ? (
<dialog open>
<p>Discard your changes?</p>
<button onClick={() => blocker.proceed()}>Discard</button>
<button onClick={() => blocker.reset()}>Stay</button>
</dialog>
) : null;
}
5. TypeScript: no more circular type error with arrow components
If you write route components as arrow functions and read matches from Route.ComponentProps, you may have hit a circular type error. 8.5.3 fixes it in both react-router and the generated types from @react-router/dev (#15163):
import type { Route } from './+types/dashboard';
const Dashboard = ({ loaderData, matches }: Route.ComponentProps) => {
return <h1>{loaderData.title} ({matches.length} matches)</h1>;
};
export default Dashboard;
6. Server, sessions and hardening
matchPathlimits optional segments: each pattern may contain up to 12 optional (?) markers. Larger combinations are rejected (#15827). Check generated route patterns if you build them programmatically.- Sessions:
session.unset()removes both regular and flashed values (#15811), and cookies with an invalid payload shape are treated as empty sessions (#15809). - SSR: leading double slashes in request URLs no longer cause
TypeError: Invalid URLin<ServerRouter>and friends (#15805), and nonce hydration warnings are suppressed when using<ServerRouter nonce>(#15721). - Case-sensitive routes keep
caseSensitiveon client routes in Framework mode and increateRoutesStub()(#15808).
7. Developer experience fixes in @react-router/dev
- The dev server keeps running when a route has an invalid export with
ssr: falseandprerender. The problem is reported as a Vite error instead (#15591). - Vitest:
.serverimports are allowed in tests that run in Node with the default middleware-mode server (#15563). - Web workers can import JSX modules, including components that use hooks, during development (#15635).
Upgrade checklist
- Bump
react-routerand every@react-router/*package to 8.5.3 (or 7.18.7). - Remove download-link workarounds and re-enable
viewTransitionin nested routes if you disabled it. - If you generate route paths, make sure no pattern has more than 12 optional segments.
- Run your test suite, especially tests around blockers, fetchers and sessions.
- In Framework mode, regenerate types (
react-router typegen) and remove any// @ts-expect-erroryou added for the arrow-functionmatchesbug.
Takeaway
React Router 8.5.3 is the kind of patch release worth taking right away. It removes a pile of small inconsistencies in navigation, forms and history handling, and hardens SSR and sessions along the way. Upgrade, delete your workarounds, and enjoy a router that does what your code says.
Sources: React Router v8.5.3 changelog · [email protected] release · React Router docs
