-
Notifications
You must be signed in to change notification settings - Fork 6
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
chore: make react* sdks react 19 compatible #348
base: main
Are you sure you want to change the base?
chore: make react* sdks react 19 compatible #348
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
This PR includes changes aimed to add support for React 19 with the
react
andreact-core
packages.The first immediate thing is there are several external dependencies in
react
andreact-core
that need be updated to the latest versions so they support or allow react 19 as a peer dependency.There was one exception to this which was
react-popper
- the react-popper project was deprecated earlier last year in favor of a new project floating-ui as a successor. The last react-popper version has react 18 as a peer dependency so we need to migrate to the new floating-ui lib, but the API has changed slightly so it involved some code changes.There are a few remaining questions/issues:
react-popper-tooltip
fromreact
for the same reason explained above.react-popper-tooltip
itself accepts react 19, but it has a dependency to react-popper 2.3.0, which has a deep dep up to react 18.react
and@types/react
to 19 in ourreact-core
package, and the type check was failing and a couple of the errors were coming from zustand func calls. My first thought was to upgradezustand
to the latest and make any necessary changes, but I realized we are quite behind and I vaguely remember us having issues upgradingzustand
?I think the ideal solution is to resolve the issues above, but still keep react and react-dom deps for dev in our packages still at 18 because it seems like our monorepo setup forces a single consistent version across all of our packages and example apps, and upgrading them may be too big of a lift.