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

Convert ReactRenderDocument to hydrateRoot #28153

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

rickhanlonii
Copy link
Member

No description provided.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jan 30, 2024
},
});
});
}).toErrorDev(
Copy link
Member Author

Choose a reason for hiding this comment

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

These test have a bunch of improvements to the errors in the new root.

// This creates an unfortunate double text case.
expect(container.textContent).toBe('potatoparsnip');
expect(container.textContent).toBe('parsnip');
Copy link
Member Author

Choose a reason for hiding this comment

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

Client render replaces the content with the client version.

}
expect(testDocument.body.innerHTML).toBe('Hello world');
});

it('supports findDOMNode on full-page components', () => {
it('supports findDOMNode on full-page components in legacy mode', () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Specifically testing findDOMNode.

@rickhanlonii rickhanlonii marked this pull request as ready for review January 30, 2024 05:07
@react-sizebot
Copy link

react-sizebot commented Jan 30, 2024

Comparing: 4d6c47b...da2c623

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 176.59 kB 176.59 kB = 55.01 kB 55.01 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 178.69 kB 178.69 kB = 55.64 kB 55.64 kB
facebook-www/ReactDOM-prod.classic.js = 573.52 kB 573.52 kB = 100.99 kB 100.99 kB
facebook-www/ReactDOM-prod.modern.js = 557.29 kB 557.29 kB = 98.07 kB 98.07 kB
test_utils/ReactAllWarnings.js Deleted 67.55 kB 0.00 kB Deleted 16.54 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
test_utils/ReactAllWarnings.js Deleted 67.55 kB 0.00 kB Deleted 16.54 kB 0.00 kB

Generated by 🚫 dangerJS against da2c623

@eps1lon
Copy link
Collaborator

eps1lon commented Jan 30, 2024

Seems like www is not happy with the new tests.

@rickhanlonii
Copy link
Member Author

Thanks for the fix @eps1lon!

@rickhanlonii rickhanlonii merged commit 2cd19ed into facebook:main Feb 7, 2024
36 checks passed
@rickhanlonii rickhanlonii deleted the rh/test-rrd branch February 7, 2024 14:54
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
Co-authored-by: Sebastian Silbermann <sebastian.silbermann@klarna.com>
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
Co-authored-by: Sebastian Silbermann <sebastian.silbermann@klarna.com>

DiffTrain build for commit 2cd19ed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants