Skip to content

Conversation

@LekoArts
Copy link
Contributor

Description

The named imports were a bit over eager in the initial PR (#32378) so this switches it to default import via ReactDOM. We do the same in cache-dir/app.js.

Related Issues

Fixes #32451

[ch34846]

@LekoArts LekoArts added the topic: media Related to gatsby-plugin-image, or general image/media processing topics label Jul 21, 2021
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 21, 2021
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 21, 2021
@LekoArts LekoArts changed the title change named imports to default import to fix warning fix(gatsby-plugin-image): Switch react-dom import to remove createRoot warning Jul 21, 2021
Copy link
Contributor

@vladar vladar left a comment

Choose a reason for hiding this comment

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

Should we maybe add some greppable comment like TODO: remove in v4?

Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

@pieh pieh merged commit 9595ccb into master Jul 21, 2021
@pieh pieh deleted the gatsby-plugin-image-fix-warning branch July 21, 2021 09:42
LekoArts added a commit that referenced this pull request Jul 21, 2021
LekoArts added a commit that referenced this pull request Jul 21, 2021
…t warning (#32457) (#32458)

(cherry picked from commit 9595ccb)

Co-authored-by: Lennart <[email protected]>
@LekoArts
Copy link
Contributor Author

Published in [email protected]

pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: media Related to gatsby-plugin-image, or general image/media processing topics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[gatsby-plugin-image]: Warning about createRoot after upgrading to 1.10.0

4 participants