-
Notifications
You must be signed in to change notification settings - Fork 1.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 #2800
Comments
Strong agree. FWIW I tried upgrading an app with an SSR component to React 18 and see the following error, which may (or may not) be related to this ticket. Note the third line of the stack trace coming from
I wonder what would happen if 18 is whitelisted here https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/ssr/package.json#L23 |
I think your suggestion is because you suspect multiple copies of React? We'll expand that list of supported versions when we pick up this issue. Right now we know that some of our components have some bugs when used in a concurrent tree, so we can't in good faith expand it just yet. |
Sorry, it was a wonky
That makes sense. Do you happen to know which components have bugs when used in a concurrent tree? |
Unfortunately, it's a bit more of a suspicion than knowing which ones have bugs. We have issues tracking our components that have problems in strict mode, we assume those are the ones that may have bugs in concurrent mode. Most of the work we need to do is outlined in #2136 as mentioned in the description of this issue. You can see there that pretty much everything rendered correctly when we tried out the alpha a few months ago, but there are still some other things to test out. If you try it in your app and find any issues, please report them :) |
Will do. Thanks! |
Nicely done @devongovett, thanks! |
We will be testing this on Tuesday and hopefully releasing shortly after if all goes well. The releases page is the best place, and I usually announce them on Twitter as well. |
🙋 Feature Request
We'd like to formally support React 18.
🤔 Expected Behavior
One thing we'll need to figure out is, for any of our containers (ie dialogs), do we need an API to mount the new/old way so we don't accidentally poison the downstream tree which may not be ready yet.
See this comment in particular #2136 (comment)
😯 Current Behavior
💁 Possible Solution
See Context.
🔦 Context
Starting and exploration work has been done here:
#2526
https://github.com/adobe/react-spectrum/tree/react-18
#2136
The text was updated successfully, but these errors were encountered: