Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate from remix v2 + react-router v6 to react-router v7 #105

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JoshuaKGoldberg
Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg commented Jul 23, 2024

PR Checklist

Overview

Result of a pairing on stream with @brophdawg11: https://www.youtube.com/watch?v=ikRmJPg5GWU Uses react-router@7's prerender to more natively render static contents.

💖

Co-authored-by: @brophdawg11

@@ -1,7 +1,3 @@
// We deploy to static pages, so this must be a client-only component.
// https://github.com/philly-js-club/philly-js-club-website/issues/61
"use client";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO for Josh: move to a separate PR

@@ -41,11 +41,11 @@
"playwright": "^1.45.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router": "0.0.0-nightly-90ebbf91d-20240718"
"react-router": "0.0.0-experimental-49eef6a01"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an experimental release from remix-run/react-router#11833 that fixes the issues we found on the stream:

  • __manifest is now pre-rendered
  • Trailing slashes are removed from single fetch data calls so no more invalid /about/.data calls
  • Hydration loops should be resolved since we detect via matches and not a direct URL comparison

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.

🐛 Bug: Don't use 'dev' server when using wget for build
2 participants