-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Support react@18 in @rjsf/material-ui #2857
Comments
I'm unsure if this behaviour is related to React@18, but, if you
If this is due to something irrelevant, I'd be happy to make a new issue. Using:
|
This is a known issue... you'll want to use one of the sub-variants for |
@heath-freenome thank you! That's great news. |
Be sure to check the README.md for |
@heath-freenome the |
@epicfaace I forked the rjsf repo and tried to update the @rsjf/material-ui package to support React 18. The main problem is that mui 4 (used in the @rsjf/material-ui/v4 package) carries with it React 16 || React 17 as peer dependency. If I wanted to open a pull request to allow supporting React 18, what would be the best way to solve this problem?
2.Split the @rsjf/material-ui release in 2 separate packages (e.g. @rsjf/material-ui-4 and @rsjf/material-ui with separated source code and package.json) so that the @rsjf/material-ui can work with react 18? Let me know so that I can proceed :) |
@alboo89 is material ui version 4 even getting updates still? If not I'd just say drop it, otherwise you'll risk having to support both versions unnecessarily right? |
It should be cool to have |
In the upcoming v5 release (beta expected in august), |
Is there any help that is needed to get React 18 supported? I'd be willing to help out if necessary. |
if need any help with this React 18 issue, i willing to help as well. i wanna this library with React 18 |
I believe the main issue with React 18 and strict mode was fixed with this PR. Also, the 5.x release works with React 18 without the peer dependencies issue. Also you'll need to use |
Prerequisites
What theme are you using?
material-ui
Version
4.2.0
Current Behavior
Unable to install
@rjsf/material-ui
withreact@18
Expected Behavior
The package
@rjsf/material-ui
is installed without errors when usingreact@18
.Steps To Reproduce
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: