Skip to content

Comments

Upgrade to React Router 7#254

Open
bigdogwillfeed wants to merge 9 commits intomainfrom
react-router
Open

Upgrade to React Router 7#254
bigdogwillfeed wants to merge 9 commits intomainfrom
react-router

Conversation

@bigdogwillfeed
Copy link
Member

@bigdogwillfeed bigdogwillfeed commented Feb 19, 2025

We used to be using remix, and the future of that framework is react router. So I followed the upgrade docs https://reactrouter.com/upgrading/remix

The most important change here is 5fc826a, where I removed the client and server entries. To get that completely working, I also needed to merge index.html and root.tsx. I don't know what all the entry files were doing for us, but going back to a more off-the-shelf react router setup was necessary to get the app to render anything at all

Following https://reactrouter.com/upgrading/remix, I did `npx codemod remix/2/react-router/upgrade`, `pnpm install`, and `pnpm lint --fix` (to get rid of semi colons)
It's possible we'll want to customize the entry points in the future, but this change is what it took to get the app to function at all
navigate is now async so needs to be handled as such
@bigdogwillfeed bigdogwillfeed changed the base branch from herb/contain-effect-to-data-layer to main February 23, 2025 20:39
# Conflicts:
#	pnpm-lock.yaml
replaced this extra bit of remix still lurking with the proper react-router syntax
react-router says it needs this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant