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

fix(gatsby,gatsby-plugin-image): fix createRoot on React 18 #32378

Merged
merged 2 commits into from
Jul 16, 2021

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Jul 15, 2021

Description

Move to createRoot for gatsby-plugin-image and indicator

Documentation

Related Issues

#31943

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 15, 2021
@wardpeet wardpeet added topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jul 15, 2021
@@ -194,7 +194,7 @@ apiRunnerAsync(`onClientEntry`).then(() => {
document.body.append(indicatorMountElement)

if (renderer === ReactDOM.hydrateRoot) {
renderer(indicatorMountElement).render(
ReactDOM.createRoot(indicatorMountElement).render(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is not html to hydrate so we d a regular root

@wardpeet wardpeet merged commit 79b7b04 into master Jul 16, 2021
@wardpeet wardpeet deleted the feat/gatsby-plugin-image-react-18 branch July 16, 2021 10:14
LekoArts pushed a commit that referenced this pull request Jul 19, 2021
LekoArts pushed a commit that referenced this pull request Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants