Couchers-org / couchers

The next-generation couch surfing platform. Free forever. Community‑led. Non‑profit. Modern. Chuck us a star :)
https://couchers.org
MIT License
389 stars 78 forks source link

Upgrade to React v18 #5167

Open nabramow opened 1 week ago

nabramow commented 1 week ago

We need to upgrade to React v18 before we can upgrade Next.js to v13 and/or Material UI any further, so this should be the next upgrade priority.

Here is the migration guide for React v18: https://react.dev/blog/2022/03/08/react-18-upgrade-guide

darrenvong commented 5 days ago

The Next.js docs for upgrading to v13 could be useful too: https://nextjs.org/docs/pages/building-your-application/upgrading/version-13

Although since we currently don't use much server-side features, I hope the upgrade should be fairly seamless 🤞 The only thing I can think of that might need tweaking/breaks is the tiny middleware we wrote for re-directing users to the dashboard if they are already logged in, as I vaguely remember that to be still an experimental API when we used it for v12