Skip to content

Update React Router to v7 - #14

Merged
adman234 merged 1 commit into
developfrom
fix/react-router-v7
Dec 1, 2026
Merged

adman234 merged 1 commit into
developfrom
fix/react-router-v7

Conversation

@adman234

@adman234 adman234 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Updates react-router to 7.18.7 and removes react-router-dom, which v7 merges into react-router. Two UI files now import from react-router instead.

Replaces #7, which only updated react-router. That left react-router-dom with its own v6 copy, and the UI crashes when the two are mixed. CI doesn't catch this because it builds the UI without opening it.

Tested with the Docker image built from this branch and a stub Factorio binary:

  • Redirect to login, login and logout
  • All nine pages in the menu, including the highlighted menu item
  • Browser Back, and opening /mods directly while logged in
  • No browser errors while moving between pages. The only console errors were the failed API and websocket requests while logged out.

Upgrade react-router to 7.18.7 and drop react-router-dom, which is
merged into react-router in v7. Updating only react-router leaves
react-router-dom on its own v6 copy and breaks the UI at startup.
@adman234
adman234 merged commit 79387af into develop Dec 1, 2026
15 checks passed
@adman234
adman234 deleted the fix/react-router-v7 branch December 1, 2026 18: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.

1 participant