Release 7.15.1#15038
Merged
Merged
Conversation
Contributor
Preview Build AvailablePreview builds have been created for this PR. You can install pnpm install "remix-run/react-router#preview/pr-15038&path:packages/react-router"And/or install other packages via: pnpm install "remix-run/react-router#preview/pr-15038&path:packages/react-router-dev"
pnpm install "remix-run/react-router#preview/pr-15038&path:packages/react-router-express"
pnpm install "remix-run/react-router#preview/pr-15038&path:packages/react-router-node"
pnpm install "remix-run/react-router#preview/pr-15038&path:packages/react-router-serve"These preview builds will be updated automatically as you push new commits. |
abc3855 to
7625236
Compare
6 tasks
Contributor
|
The preview branch |
brophdawg11
added a commit
to remix-run/react-router-website
that referenced
this pull request
May 15, 2026
* Migrate to unstable_useRouterState hook Replaces useLocation/useParams/useNavigation calls with the consolidated unstable_useRouterState hook from remix-run/react-router#15038. useMatches calls that read loaderData are left in place since the new hook's matches omit data fields. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Update React Router to 7.15.1 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Rename useNavigation hook to useNavState Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is managed by the
releaseworkflow. Do not edit it manually.Releases
7.15.0→7.15.17.15.0→7.15.17.15.0→7.15.17.15.0→7.15.17.15.0→7.15.17.15.0→7.15.17.15.0→7.15.17.15.0→7.15.17.15.0→7.15.17.15.0→7.15.17.15.0→7.15.1Changelogs
react-router v7.15.1
Patch Changes
serverLoader()returning stale SSR data when a client navigation aborts pending hydration before the hydrationclientLoaderresolves (#15022)RouterProvideronErrorcallback not being called for synchronous initial loader errors in SPA mode (#15039) (#14942)useFetchersto return a stable identity and only change if fetchers changed (#15028)Unstable Changes
Add a new
unstable_useRouterState()hook that consolidates access to active and pending router states (RFC: Consolidate Router State Access #12358) (#15017)Data/Framework/RSC only — throws when used without a data router
This should allow you to consolidate usages of the following hooks which will likely be deprecated and removed in a future major version
useLocationuseSearchParamsuseParamsuseMatchesuseNavigationTypeuseNavigationreact-router-dom v7.15.1
Patch Changes
react-router@7.15.1@react-router/architect v7.15.1
Patch Changes
react-router@7.15.1@react-router/node@7.15.1@react-router/cloudflare v7.15.1
Patch Changes
react-router@7.15.1@react-router/dev v7.15.1
Patch Changes
Fix
basenameconflicting withappdirectory name when Vitebaseis set (#15027)When the Vite
baseconfig and React Routerbasenameboth match theapp directory name (e.g.
base: "/app/",basename: "/app/"), Vite wouldstrip the base prefix from server-build virtual module import paths, causing
"Failed to load url /root.tsx" errors. The fix uses
/@fs/absolute pathsfor those imports to bypass Vite's base-stripping logic.
Updated dependencies:
react-router@7.15.1@react-router/node@7.15.1@react-router/serve@7.15.1@react-router/express v7.15.1
Patch Changes
react-router@7.15.1@react-router/node@7.15.1@react-router/fs-routes v7.15.1
Patch Changes
@react-router/dev@7.15.1@react-router/node v7.15.1
Patch Changes
react-router@7.15.1@react-router/remix-routes-option-adapter v7.15.1
Patch Changes
@react-router/dev@7.15.1@react-router/serve v7.15.1
Patch Changes
react-router@7.15.1@react-router/express@7.15.1@react-router/node@7.15.1create-react-router v7.15.1
Patch Changes