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 Compiler / React 19 #111

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

Commits on Aug 5, 2024

  1. React19: Update packages

    React19: Fix build by extracting const in a separate file
    
    The build did not like that we imported the useMapParam file inside the middleware even though we only picked the mapParamFallback const from it. Moving the const to a separate file resolved the issue.
    
    Update to react 19-rc
    
    Following https://react.dev/blog/2024/04/25/react-19-upgrade-guide
    
    And https://nextjs.org/blog/next-15-rc#react-compiler-experimental
    
    React19: Update "Removed deprecated TypeScript types"
    
    `npx types-react-codemod@latest preset-19 ./`
    
    https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-deprecated-typescript-types
    
    And then fix the useRef type to add `undefined`
    
    Update next, react packages to latest RC version
    
    `npm install next@canary babel-plugin-react-compiler react@rc react-dom@rc types-react@rc types-react-dom@rc`
    
    Update to `@headlessui/react@insiders` to test React 19 fix
    
    Update to `@headlessui/react@insiders` to test React 19 fix; And update everything else as well
    
    `npm install @headlessui/react@insiders next@canary babel-plugin-react-compiler react@rc react-dom@rc types-react@rc types-react-dom@rc`
    
    Update RC packages
    
    `npm install next@canary babel-plugin-react-compiler@latest react@rc react-dom@rc types-react@rc types-react-dom@rc nuqs@latest @headlessui/react@insiders`
    
    Update packages nuqs:2, other packages
    
    `npm install next@canary babel-plugin-react-compiler@latest react@rc react-dom@rc types-react@rc types-react-dom@rc @headlessui/react@insiders`
    `npm i [email protected]`
    
    Update "bleach" commands
    
    Update packages 2024-08-05: `npm install next@canary babel-plugin-react-compiler@latest react@rc react-dom@rc types-react@rc types-react-dom@rc @headlessui/react@insiders [email protected]`
    tordans committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    34ae557 View commit details
    Browse the repository at this point in the history