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

5️⃣ replace all ReactDOM.render(...) by createRoot(...) from React 18 #3185

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

dimaMachina
Copy link
Collaborator

fixes #3081

@changeset-bot
Copy link

changeset-bot bot commented May 23, 2023

⚠️ No Changeset found

Latest commit: db77528

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines 107 to 108
ReactDOM.unmountComponentAtNode(tooltipDiv);
root.unmount();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@github-actions
Copy link
Contributor

github-actions bot commented May 23, 2023

The latest changes of this PR are available as canary in npm (based on the declared changesets):

graphiql@2.4.5-canary-a51f5a26.0
@graphiql/plugin-explorer@0.1.19-canary-a51f5a26.0
@graphiql/react@1.0.0-canary-a51f5a26.0

ReactDOM.render(document.getElementByID('graphiql'), <App />);
const root = createRoot(document.getElementById('graphiql'));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I realized only now that previous code snippet was incorrect, the component should be in 1st argument

we had a lot of mistakes 😅
image

Base automatically changed from radix-4 to radix-3 June 1, 2023 21:11
Base automatically changed from radix-3 to radix-2 June 1, 2023 21:14
Base automatically changed from radix-2 to radix-1 June 1, 2023 21:15
# Conflicts:
#	packages/graphiql/cypress/e2e/docs.cy.ts
@dimaMachina dimaMachina merged commit 92ccc04 into radix-1 Jun 1, 2023
@dimaMachina dimaMachina deleted the radix-5 branch June 1, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant