GeezerVison is showing github.com — Convert ReactMount to createRoot by rickhanlonii · Pull Request #28075 · react/react
Conversation
To convert this file, I started replacing all the calls in line, and quickly realized that we already have most of these tests covered in other files. So I found the test that we didn't already have for create/hydrateRoot and added them, then renamed ReactMount to ReactLegacyMount.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
);
|
|
|
});
|
|
|
|
|
|
it('clears existing children with legacy API', async () => {
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also moved any legacy tests in this file (which @eps1lon found), and moved them into ReactLegacyRoot.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Comparing: ee1eb48...436c433
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
Significant size changes
Includes any change greater than 0.2%:
Expand to show
Generated by 🚫 dangerJS against 436c433
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Walked through changes with Rick. Looking good
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
gnoff
added a commit
to gnoff/next.js
that referenced
this pull request
Feb 6, 2024
gnoff
added a commit
to vercel/next.js
that referenced
this pull request
Feb 6, 2024
EdisonVan
pushed a commit
to EdisonVan/react
that referenced
this pull request
Apr 15, 2024
To convert this file, I started replacing all the calls in line, and
quickly realized that we already have most of these tests covered in
other files. So I found the test that we didn't already have for
`create/hydrateRoot` and added them, then renamed `ReactMount` to
`ReactLegacyMount`.
bigfootjon
pushed a commit
that referenced
this pull request
Apr 18, 2024
To convert this file, I started replacing all the calls in line, and
quickly realized that we already have most of these tests covered in
other files. So I found the test that we didn't already have for
`create/hydrateRoot` and added them, then renamed `ReactMount` to
`ReactLegacyMount`.
DiffTrain build for commit 5420c4e.
hanzo-dev
pushed a commit
to hanzoai/react
that referenced
this pull request
Sep 9, 2026
To convert this file, I started replacing all the calls in line, and
quickly realized that we already have most of these tests covered in
other files. So I found the test that we didn't already have for
`create/hydrateRoot` and added them, then renamed `ReactMount` to
`ReactLegacyMount`.
Reviewers
jackpope
jackpope approved these changes
eps1lon
eps1lon approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|