chore: update dependencies and refactor routing imports - #61
Open
dahln wants to merge 1 commit into
Open
Conversation
dahln
commented
Jul 29, 2026
Owner
- Updated React and React DOM to version 19.2.7
- Changed react-router-dom to react-router version 8.3.0
- Updated ESLint and related plugins to their latest versions
- Refactored import statements in various components to use 'react-router' instead of 'react-router-dom'
- Updated React and React DOM to version 19.2.7 - Changed react-router-dom to react-router version 8.3.0 - Updated ESLint and related plugins to their latest versions - Refactored import statements in various components to use 'react-router' instead of 'react-router-dom'
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the React app’s frontend dependencies (React/React DOM, React Router, ESLint toolchain) and migrates routing-related imports as part of the move away from react-router-dom.
Changes:
- Bumped React + React DOM to
19.2.7and upgraded React Router to8.3.0(removingreact-router-dom). - Refactored routing imports across pages/components to use the new React Router v8 entrypoints.
- Updated ESLint tooling and adjusted hook rule configuration to remove inline disables.
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| Peach.Stack.App/src/pages/ResetPasswordPage.jsx | Routing import updated for v8 entrypoints. |
| Peach.Stack.App/src/pages/RegisterPage.jsx | Routing imports migrated (needs DOM/core split for Link). |
| Peach.Stack.App/src/pages/LoginPage.jsx | Routing imports migrated (needs DOM/core split for Link). |
| Peach.Stack.App/src/pages/CustomerSearchPage.jsx | Routing import updated and removed inline ESLint disable. |
| Peach.Stack.App/src/pages/CustomerPage.jsx | Routing imports migrated (needs DOM/core split for Link). |
| Peach.Stack.App/src/pages/ConfirmEmailPage.jsx | Routing hook import updated for v8 entrypoints. |
| Peach.Stack.App/src/pages/AccountPage.jsx | Routing hook import updated for v8 entrypoints. |
| Peach.Stack.App/src/components/TopNavigation.jsx | Routing imports migrated (needs DOM/core split for Link). |
| Peach.Stack.App/src/components/ProtectedRoute.jsx | Routing import updated for v8 entrypoints. |
| Peach.Stack.App/src/components/AppLayout.jsx | Routing hook import updated for v8 entrypoints. |
| Peach.Stack.App/src/App.jsx | Router setup import migrated (needs DOM/core split for BrowserRouter). |
| Peach.Stack.App/package.json | Dependency version bumps (React/Router/ESLint). |
| Peach.Stack.App/package-lock.json | Lockfile updates reflecting new dependency tree + Node engine constraints. |
| Peach.Stack.App/eslint.config.js | ESLint rule config updated (disables react-hooks/set-state-in-effect). |
Files not reviewed (1)
- Peach.Stack.App/package-lock.json: Generated file
| @@ -1,4 +1,4 @@ | |||
| import { BrowserRouter, Navigate, Route, Routes } from 'react-router-dom' | |||
| import { BrowserRouter, Navigate, Route, Routes } from 'react-router' | |||
| import { useState } from 'react' | ||
| import { Link, useNavigate } from 'react-router-dom' | ||
| import { useState } from 'react' | ||
| import { Link, useNavigate } from 'react-router' |
| @@ -1,5 +1,5 @@ | |||
| import { useEffect, useState } from 'react' | |||
| import { Link, useNavigate } from 'react-router-dom' | |||
| import { Link, useNavigate } from 'react-router' | |||
| @@ -1,5 +1,5 @@ | |||
| import { useCallback, useEffect, useState } from 'react' | |||
| import { Link, useNavigate, useParams } from 'react-router-dom' | |||
| import { Link, useNavigate, useParams } from 'react-router' | |||
| import './TopNavigation.css' | ||
| import { useEffect, useState } from 'react' | ||
| import { Link, useLocation } from 'react-router-dom' | ||
| import { Link, useLocation } from 'react-router' |
Comment on lines
+25
to
26
| "react-router": "^8.3.0", | ||
| "react-toastify": "^11.0.5", |
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.