Skip to content

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

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.

3 participants