LF-4242 (0): Upgrade to React Router v6#3999
Merged
SayakaOno merged 38 commits intoLF-4242/Upgrade_to_React_Router_v6from Feb 26, 2026
Merged
LF-4242 (0): Upgrade to React Router v6#3999SayakaOno merged 38 commits intoLF-4242/Upgrade_to_React_Router_v6from
SayakaOno merged 38 commits intoLF-4242/Upgrade_to_React_Router_v6from
Conversation
- Remove temporary back() shim, revert history.block
5c2ed5d to
961a8c5
Compare
2be7f9c to
1238f3e
Compare
SayakaOno
added a commit
that referenced
this pull request
Feb 26, 2026
* LF-4242 WIP - Install react-router-dom v6 and history v5 - Remove temporary back() shim, revert history.block * LF-4242 WIP - Replace Router with HistoryRouter * WIP - replace history.back() with navigate(-1) * WIP - Replace history.push() with navigate() * WIP Replace history.location using useLocation * WIP - Replace history.replace with navigate * WIP - Remove unused history * WIP - Remove ContextForm history prop * WIP - Refactor onAddTask * LF-4242 WIP - Remove unused history * WIP - Replace useHistory * WIP - Replace Redirect with Navigate * WIP - Replace Switch with Routes * WIP - Refactor FarmSettingsRoutes * LF-4242 WIP - Replace simple useRouteMatch usage * WIP - Replace remaining useRouteMatch * WIP - Remove unnecessary CustomRouteComponentProps type * LF-4242 WIP - Refactor routes * LF-4242 WIP - Refactor FinancesRoutes * LF-4242 WIP - Update finance pages * LF-4242 WIP - Adjust AnimalsRoutes * LF-4242 WIP - Fix navigate's second argument (options) to be an object * WIP - Update WithNavigation and class components * LF-4242 WIP - Address TODOs * LF-4242 WIP - Address more TODOs * LF-4242 WIP - Fix incorrect React Router usage * LF-4242 WIP - Fix navigate() second argument * LF-4242 WIP - Update PurePlanGuidance onSubmit prop fallback * LF-4242 WIP - Replace location prop with useLocation() * LF-4242 WIP - Fix navigate() second argument * LF-4242 WIP - Add location.state null check, remove location null check * LF-4242 Adjust getMenuItemProps function * LF-4242 Update Tape routes * LF-4242 Define Element outside RoutesComponent * LF-4242 Replace useHistory in Tape * LF-4242 Address TS errors * LF-4242 Fix navigate() in CropPlansModal * LF-4242 Add TODO comment
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.
Description
Squash merging instead of merge commit. Individual commits in this branch are broken/incomplete and checking them out independently causes crashes. Further work will continue in the feature branch that will be merged to integration.
Jira link: https://lite-farm.atlassian.net/browse/LF-4242
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
pnpm i18nto help with this)