Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

A React renderer without React 18+ API support is being used with React 18+. #3841

Closed
stitch-05 opened this issue Dec 27, 2022 · 1 comment · Fixed by #4342
Closed

A React renderer without React 18+ API support is being used with React 18+. #3841

stitch-05 opened this issue Dec 27, 2022 · 1 comment · Fixed by #4342

Comments

@stitch-05
Copy link

stitch-05 commented Dec 27, 2022

Describe the bug
When I call recoil's useRecoilState() I get the following error (however the function seems to be working correctly):

A React renderer without React 18+ API support is being used with React 18+.

I don't get any error when I use recoil with React. Perhaps I need to setup more/different paths in tsconfig.json?

To Reproduce

Clone the repo and npm install && npm run dev. The problem is here.

Quick Codesandbox code I made, runs with an error related to a renderer so I assume it's the same issue.

@rschristian
Copy link
Member

I don't believe it's anything for you to fix, no.

Offending function in Recoil can be found here: https://github.com/facebookexperimental/Recoil/blob/f1d2969e0c2dac25877d051829b18cd6addbd0c9/packages/recoil/core/Recoil_ReactMode.js#L35-L74

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

Successfully merging a pull request may close this issue.

2 participants