Packages

react-router

8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed

Your version

6.11.0

28 Apr 2023Where it was published

6.30.6 is the newest release of 6.x.

In short

1 new7 fixed1 internal

Security

Release note

The section about react-router of a note shared by several packages.

Patch Changes

  • Log loader/action errors to the console in dev for easier stack trace evaluation

  • Fix bug preventing rendering of descendant <Routes> when RouterProvider errors existed

  • Fix inadvertent re-renders when using Component instead of element on a route definition

  • Fix detection of useNavigate in the render cycle by setting the activeRef in a layout effect, allowing the navigate function to be passed to child components and called in a useEffect there.

  • Switched from useSyncExternalStore to useState for internal @remix-run/router router state syncing in <RouterProvider>. We found some subtle bugs where router state updates got propagated before other normal useState updates, which could lead to footguns in useEffect calls. (#10377, #10409)

  • Allow useRevalidator() to resolve a loader-driven error boundary scenario

  • Avoid unnecessary unsubscribe/resubscribes on router state changes

  • When using a RouterProvider, useNavigate/useSubmit/fetcher.submit are now stable across location changes, since we can handle relative routing via the @remix-run/router instance and get rid of our dependence on useLocation(). When using BrowserRouter, these hooks remain unstable across location changes because they still rely on useLocation().

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.