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

React Router 7 #2628

Merged
merged 6 commits into from
Dec 29, 2024
Merged

React Router 7 #2628

merged 6 commits into from
Dec 29, 2024

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Dec 17, 2024

This is currently using a nightly release because we need remix-run/react-router#12469 for Vite 6 support, but everything seems good. The big sticking point was the startTransition thing, which broke scroll restore. But when I tested it manually, it didn't actually break it, and I was able to get the test to pass consistently by adding some sleeps. If it's flaky in CI, that'll be really annoying, but otherwise I'm not too worried about this feature because I consider scroll restoration to be kind of a best-effort thing and in manual testing it feels like it's working quite well.

As you can see in the diff, this doesn't require any code changes besides updating imports because we are using RR in "library mode" (fka RR v6) rather than "framework mode" (fka Remix).

Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Dec 29, 2024 8:54pm

@david-crespo david-crespo merged commit c147df0 into main Dec 29, 2024
8 checks passed
@david-crespo david-crespo deleted the react-router-7 branch December 29, 2024 21:02
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