May 21, 2025
How to Adopt All Future Flags
Future Flag Migration for React Router 7 Before upgrading to React Router 7, you need to make sure to adopt all Remix future flags. The CLI upgrade command (npx shopify hydrogen upgrade) provides guides on how to do this, but this guide consolidates all the steps. First of all, the legacy classic Remix compiler is no longer supported, and you must upgrade to Vite if you haven't already. After running npx shopify hydrogen upgrade, run npx shopify hydrogen setup vite to migrate to Vite. Next enable each of these future flags. It's easiest to do one at a time, making sure the app is functional...
Read more about How to Adopt All Future Flags