Skip to content

Upgrade React Router to v7.13.0#283

Merged
jwaspin merged 5 commits intomainfrom
copilot/upgrade-react-router-to-v7
Feb 17, 2026
Merged

Upgrade React Router to v7.13.0#283
jwaspin merged 5 commits intomainfrom
copilot/upgrade-react-router-to-v7

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

Upgrades react-router-dom from v6.30.3 to v7.13.0 for React 19 compatibility and performance improvements.

Changes

  • Dependencies: Updated react-router-dom to ^7.13.0
  • Version: Bumped to 2.3.1
  • Documentation: Updated CHANGELOG.md

Implementation Notes

Zero breaking changes. The app already had v7 future flags enabled (v7_startTransition, v7_relativeSplatPath) in the Router configuration:

<Router
  future={{
    v7_startTransition: true,
    v7_relativeSplatPath: true,
  }}
>

All routing APIs remain unchanged:

  • Hooks: useNavigate, useParams, useLocation
  • Components: BrowserRouter, Routes, Route, Navigate, Link

No code modifications required beyond the dependency update.

Verification

Welcome Page with v7

All routes functional:

  • Public routes: /, /login, /register
  • Protected routes: /dashboard, /accounts, /categories, /settings, /help
  • Navigation: programmatic, browser back/forward, direct linking

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • reactrouter.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Upgrade React Router to v7</issue_title>
<issue_description>## Upgrade React Router to v7

Upgrade react-router-dom from v6.30.3 to v7.x for latest features, React 19 compatibility, and improved performance.

Why

  • React Router v7 released with React 19 support
  • Better type safety and performance
  • New features and API improvements
  • Keep routing library current with React version
  • Bug fixes and security updates

Tasks

  • Update react-router-dom to ^7.0.0
  • Run pnpm install
  • Review React Router v7 migration guide
  • Check for breaking changes in routing APIs
  • Update any deprecated hook usages
  • Verify all routes still work:
    • / (Landing)
    • /dashboard (Dashboard)
    • /accounts (Accounts)
    • /accounts/:accountId (Ledger)
    • /categories (Categories)
    • /settings (Settings)
    • /help (Help)
  • Test navigation between all views
  • Test URL parameters (:accountId)
  • Test programmatic navigation (useNavigate)
  • Run full test suite: pnpm test
  • Run linter: pnpm lint
  • Update CHANGELOG.md with dependency version

Acceptance Criteria

  • All 221 tests pass
  • No linting errors
  • No routing warnings in console
  • All navigation works correctly
  • Browser back/forward buttons work
  • Deep linking to specific accounts/views works
  • No 404 errors on valid routes

Notes

  • Check if useParams, useNavigate, useLocation have any changes
  • Verify nested routing still works correctly
  • Estimated effort: 1-2 hours including testing</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: jwaspin <6432180+jwaspin@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 17, 2026

Deploying beta-lucaledger with  Cloudflare Pages  Cloudflare Pages

Latest commit: a8da4c3
Status: ✅  Deploy successful!
Preview URL: https://43892d91.beta-lucaledger.pages.dev
Branch Preview URL: https://copilot-upgrade-react-router.beta-lucaledger.pages.dev

View logs

Co-authored-by: jwaspin <6432180+jwaspin@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade React Router to v7 for improved features and performance Upgrade React Router to v7.13.0 Feb 17, 2026
Copilot AI requested a review from jwaspin February 17, 2026 02:34
@jwaspin jwaspin marked this pull request as ready for review February 17, 2026 02:44
@jwaspin jwaspin merged commit 57d4b7c into main Feb 17, 2026
2 checks passed
@jwaspin jwaspin deleted the copilot/upgrade-react-router-to-v7 branch February 17, 2026 02:47
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.

Upgrade React Router to v7

2 participants