-
Notifications
You must be signed in to change notification settings - Fork 7
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 new root handling API introduced in React 18.x #37
Comments
Yeah, I'd like to add support for it. I'm going to have to investigate whether I can add support for the new API (for React 18) while still supporting the old API (for React < 18), or if it'll just have to be a breaking change and drop support for previous React runtimes. |
Had a chance yet, @Retsam? |
I had a quick go, seems to run, but had to leave it there for now so should be considered alpha and untested.
|
Any news @Retsam ? |
@eithe Thanks for the reminder; I'm working on this now. It looks like supporting both is tricky, so it's going to be a full upgrade to React 18 for the repo with a breaking change. I think I have the change itself done, but I'm also going to have to rip out enzyme (which doesn't support React 18) if I want to have any tests working, so that may take a little bit. (Also my main codebase I use this in hasn't updated to React 18, so I'm working on that too) |
Any thoughts on my draft above, @Retsam? We are thinking about moving ahead with this now, but if you have any concerns I would like to hear them. |
@eithe Sorry for the delay, I've published a |
Sounds good. Do you have a branch with those changes as well? |
@eithe Ah, yeah, forgot to actually push the branch - it's now up here |
Unfortunately I haven't had the time to test out your code yet, but just FYI I had to add the following near the
|
@Retsam Have you looked into supporting React 18.x with regards to the new root API?
Specifically it affects the React binding handler and
ReactDOM.unmountComponentAtNode
+ReactDOM.render
.The text was updated successfully, but these errors were encountered: