-
Notifications
You must be signed in to change notification settings - Fork 647
feat(project): update to React 18 for development #2675
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
feat(project): update to React 18 for development #2675
Conversation
🦋 Changeset detectedLatest commit: 3a4d393 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
a9080f4 to
6a319fc
Compare
|
cc @broccolinisoup was running into some weird storybook test errors with UnderlineNav and was curious if you had any thoughts on what I was doing wrong here 🤔 |
88cd325 to
b84bced
Compare
I don't think there is anything you are doing wrong! Seems like storybook play function has some issues with React 18 already and I have a feeling it is something to do with it. There are 2 issues I see on UnderlineNav interaction tests on this branch
|
|
@broccolinisoup thanks so much for taking a look! 🙌 Just pushed a change that sets |
Sounds good to me! Thanks for adding up the delay functions as well! |
Update react dependencies to v18 in
devDependencies. The project still supports both v17 and v18.Notes
useIdhook will always use theuseSSRSafeIdpath in test en vironmentsreact-dom/clientin order to replaceReactDOM.render()usage, this may be something that we'll want to save for our next major release or find a way to replaceReactDOM.render()usage with something elseChangelog
New
Changed
package.jsonto use React 18 deps as defaultuseSSRSafeIdusage to an internaluseIdhook, under the hood it toggles betweenuseIdanduseSSRSafeIddepending on React environmentuseSSRSafeIdand replace it with the internaluseId()hookRemoved