-
Notifications
You must be signed in to change notification settings - Fork 25
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 for React 18 #57
Comments
I am experience the same warning. I tried to check all the libraries used and this one appears to have to do with it. |
Thanks both! I'll look at the best way to switch the render method. One option is releasing a new major version of this plugin to align with Gatsby v5, which will have React 18 as a requirement. |
I am afraid this is an upstream problem with loadable: gregberge/loadable-components#718 I recommend migrating to |
I have removed the React 18 allowance from peer deps in |
@graysonhicks I did the migration to React.lazy and Suspense, but I am not able to run it (getting this one gatsbyjs/gatsby#36678). Not sure it is a solution supported by Gatbsy. |
Thanks @lezan but it is supported by Gatsby (despite the apparent bug). |
Hey @graysonhicks sorry to bother. Does it means is not a bug but I am doing something wrong? |
No worries @lezan it may be a bug, or it may be user error. I've responded to your issue on the Gatsby repo and we can track there. Regardless, this plugin will not support React 18, as Gatsby v5 will with |
Because this plugin uses
reactDom.render
in it's gatsby-browser.js, it prevents using react 18 features:The text was updated successfully, but these errors were encountered: