-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 18 Migration: The Umbrella #11308
Comments
There's some interesting ideas in this article with using yarn aliases and installing both versions of react. Toggling between the two versions via an env variable seems reasonable. It will require that we run our test suite twice. We can separating it out into it's own action/job so it can be parallelized. |
When you DO add support for React 18, will you also add it to v10? Many teams want to move to React 18 (or have already moved using |
hey @dglozic, we have no plans to backport React 18 support to Carbon 10. We are, however, creating time and space for dealing with the fallout from moving to React 18. We expect a spike to investigate this further. Come join us in v11! The water is fine ;) |
Based on what I have seen so far, a significant number of products are still on v10 because of the hardship of porting to 11. I am expecting this to become a problem as a significant portion of code running in production is not on a version you are currently spending most of your time on. React 18 is a good example - we moved from 16.12 (skipping 17) to 18.2. I had to fix couple of things here and there (mostly hydration) and mostly because I wanted to take advantage of I would also expect more pressure for smooth co-existence of 10 and 11 codes in the same page (because we don't control all the shared components that we depend on). It is simply not possible to make a synchronized jump at the product of the Cloud Pak for Data size. |
Not to be 'that guy', but is there an ETA on this since Next.js 13 uses react 18 by default. I've been using the |
@The-Real-Thisas We've got a draft PR up that we're actively working on: #13332 we're trying to land it asap. We just need to fix the CI issues. |
Just to update here, React 18 support is out and included starting in v1.27.0 The remaining items outlined in this issue are just pieces that were previously blocked by lack of React 18 support. |
All items that remained in this issue have been transferred to #13623 |
React shipped their v18 major release earlier this month. We would like to include support for this version in the
carbon-components-react
,@carbon/react
, and@carbon/icons-react
packages in v11. In order to do so, we will need to:Tasks
Workarounds
In the meantime, you can force the install of React 18 by either:
--legacy-peer-deps
node_modules
resolutions
to override the dependency versionoverrides
to override the dependency versionThese workarounds are not a statement of support - there may be compatibility issues with React 18.
The text was updated successfully, but these errors were encountered: