Skip to content

RR7 5/5: Upgrade to react-router v7#2002

Open
GregorShear wants to merge 1 commit into
greg/rr7-4-future-flagsfrom
greg/rr7-5-v7
Open

RR7 5/5: Upgrade to react-router v7#2002
GregorShear wants to merge 1 commit into
greg/rr7-4-future-flagsfrom
greg/rr7-5-v7

Conversation

@GregorShear

@GregorShear GregorShear commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Part of the React Router v7 upgrade stack (5 of 5). Base: greg/rr7-4-future-flags.

Bumps react-router and react-router-dom to v7 (7.17.0) and removes the future flag object, since those flags are now the default in v7. With the flags already enabled in PR 4, this swap is behavior-neutral — the only code change is deleting the flags.

  • react-router-dom kept installed (it re-exports react-router in v7), so the 32 existing react-router-dom import sites and use-query-params (peer react-router-dom: >=5) keep working unchanged. No import rewrite needed.
  • This is data mode only — no framework mode, no Vite plugin, no href(). Stays on createBrowserRouter.
  • Typecheck clean across the project; app boots and the out-of-layout (/oauth), dialog-over-table, and 404 patterns all verified in-app on v7.

Does not address the routes.ts path/title duplication — that's an orthogonal track (flat paths helper or, later, framework mode).

Bumps react-router and react-router-dom to v7 and removes the future-flag
object, since those flags are now the default behavior in v7. With the flags
already enabled in v6 (prior commit), this swap is behavior-neutral.

react-router-dom is kept installed (it re-exports react-router in v7) so the
32 existing 'react-router-dom' import sites and use-query-params continue to
work unchanged. Typecheck passes clean; app boots and the out-of-layout,
dialog-over-table, and 404 routing patterns all verified in-app on v7.
@GregorShear GregorShear requested a review from a team as a code owner June 12, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant