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.
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
[core] Improve React 19 support #15769
[core] Improve React 19 support #15769
Changes from 59 commits
93bf5ac
1506c31
c656122
91daf42
914270e
4dc9d67
c62046e
a4e6a2f
e7dc07d
85998ce
ddbae8e
4ca779b
8c09a3e
f652cd8
190e37d
be7cbc8
05c307b
ecd1f5a
4b6da95
81c09f3
9ab8ac7
f3e6970
731f5dc
ea994c8
a6362d3
8317602
aad5677
41ab3c2
dede7d1
5ef32f2
3bb3494
443e8fa
b825c72
18f2912
37678a0
f8d425b
6afea09
09ce052
c243a43
e0f937c
d53daa4
2850c26
bf1ea94
04632a8
0f41ede
2662a65
d437bc1
fae1f8d
80fd09f
87c2d9e
6c89540
331478a
61f7fa4
94027c4
f8e48f5
6b4a212
a3b032c
3974d69
39f276c
35506cc
f577a75
e6ef9e4
3d43e6a
52ffe7b
e14cbc3
2e4bd1a
08f84bf
7220a0b
6e1070f
a5c40a3
3bf257c
efebb48
9d56411
caf3bd8
3e8e486
cdc72a2
1475f33
a4c728e
ca32e1b
dd14eba
8c71c2d
46314cd
1ce6f75
ed403a3
3d40915
bb0868f
94976e5
78a4dea
4d740b7
85bf3f5
7187ad0
636a349
4fa033c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Bumping Core packages as they seem to fail on the individual branch due to not initialized
useRef
usages. 🙈#15924
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.
We should probably still test CI on react 18 though. It doesn't seem like
(props) => <div ref={props.ref}>
can work on react 18 without theforwardRef
, but it works properly in 19.19: https://codesandbox.io/p/sandbox/react-19-hws42c
18: https://codesandbox.io/p/sandbox/react-18-htw6s7
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.
Oh yeah, that is a great idea.
I was just not sure if we should do it in the same PR as this is already big...
But I think that given the circumstances, at least for some time, we should run both react 19 and 18 on CI. 🤔
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.
I also need to setup periodic tests with React 18 on the core repo. Let me know if someone starts working on this on the X side 😊.
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.
I did not test it out
but technically, this should allow you running additional workflows with R18
https://github.com/mui/mui-x/blob/master/test/README.md#ci
Better is off course to have it automated, but could be useful until that is set up
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.
Added these to avoid
@emotion
errors.We should be able to remove them once
@emotion
adds support for React 19.Reference: emotion-js/emotion#3291, emotion-js/emotion#3271