Skip to content
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

Recoil breaks with React 19 #69

Open
eatyourgreens opened this issue Dec 13, 2024 · 0 comments
Open

Recoil breaks with React 19 #69

eatyourgreens opened this issue Dec 13, 2024 · 0 comments

Comments

@eatyourgreens
Copy link

Copying this across from nismod/irv-jamaica#236:

After a quick experiment, where I upgraded to React 19 then ran the app in dev mode, useRecoilValue throws the following error with React 19.

Uncaught TypeError: Cannot destructure property 'ReactCurrentDispatcher' of 'import_react.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' as it is undefined.

It looks like __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED was finally removed from React, but Recoil depends on it.

If we want to upgrade to React 19, we need to replace Recoil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant