-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
[core] Bump React to 19 #42824
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
Closed
Closed
[core] Bump React to 19 #42824
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
369c230
Bump React to 19
aarongarciah 0fce693
Run useRef codemod
DiegoAndai 91803b0
Remove resolutions for @types/react
Janpot 73c1cc4
patch deps
Janpot 1de7c1a
docs
Janpot 9e858c5
Update some React refs types and default values
aarongarciah 2a3e5c0
Stop using deprecated React.MutableRefObject
aarongarciah 1d5a94f
Fix next types
Janpot 7f15351
Fix remaining element.ref access issues
DiegoAndai 63aad34
Remove stale util
DiegoAndai 7a03c0d
Fix Modal test
aarongarciah 2d1241d
Undo some React.MutableRefObject changes
aarongarciah f42adaa
Revert "Fix Modal test"
aarongarciah ced416f
Adapt Modal test to pass
aarongarciah d1ee2ee
Update @floating-ui transitive dependencies
aarongarciah b6169a4
Update Next.js
aarongarciah 1100354
Disable Next.js workerThreads
aarongarciah 032cfc3
Adapt envinfo test to pass
aarongarciah c603f89
pnpm dedupe
aarongarciah 5659b2a
Patch styled-components types
aarongarciah 9c37cac
Merge branch 'master' into react-19
DiegoAndai 06e3c34
Pin next to 15.0.2 temporarily
DiegoAndai e2637d4
Trigger CI
DiegoAndai 0e34c2c
Merge branch 'master' into react-19
DiegoAndai 6434117
Merge branch 'master' into react-19
DiegoAndai 5e06d10
Update material-nextjs next version to canary
DiegoAndai 2f3487d
Update to latest React rc
DiegoAndai 99ef5eb
Use skipLibCheck instead of sc patch
DiegoAndai b40b413
Trigger CI
DiegoAndai 8239a6e
Update React to 19.0.0-rc.1
DiegoAndai efb3518
Try medium+ container to see if killed signal is due to OOM
DiegoAndai d29bc49
Merge branch 'master' into react-19
DiegoAndai 88c81a4
Update packages to stable versions
DiegoAndai 8a0289b
Skip lib check in system due to sc
DiegoAndai f3eaaae
Adapt useCurrentColorScheme test to React 19
DiegoAndai 5479511
Use medium+ containers for this PR
DiegoAndai 0ebf220
Revert envinfo test change
DiegoAndai 9348865
Refactor useCurrentColorScheme test
DiegoAndai b5459e7
Remove unnecessary version specifying
DiegoAndai bc6f888
Support React 18 in useCurrentColorScheme test
DiegoAndai 531bd6a
Bump next to 15.0.4
DiegoAndai 9bfbece
Revert incorrect merge resolution in mui-base package.json
DiegoAndai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Support React 18 in useCurrentColorScheme test
- Loading branch information
commit bc6f8885e3ad21f81df581f3895c97bcd2af08e7
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was recently added, that's why we didn't cover it before in this PR.
The previous approach didn't work with React 19, probably due to the changes to strict mode. The difference in events between 18 and 19 is the following:
render render run effect -run effect (this one doesn't run in React 19) render render run effectAnd for both, the last effect run wasn't being registered in the rendered content. That's why with React 18 the result was
light:2even though the effect runs 3 times. For React 19, the effect is runs 2 times.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @siriwatknp