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

[Fizz] Wire up the Fixture #21273

Merged
merged 2 commits into from
Apr 22, 2021
Merged

Conversation

sebmarkbage
Copy link
Collaborator

We're now far enough along in parity to run the fixture.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Apr 14, 2021
@@ -892,7 +892,7 @@ export function commitHydratedSuspenseInstance(
export function shouldDeleteUnhydratedTailInstances(
parentType: string,
): boolean {
return parentType !== 'head' || parentType !== 'body';
return parentType !== 'head' && parentType !== 'body';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This case is most for this case of hydrating the whole doc which doesn't have other test coverage. Made a typo in the refactor before.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@acdlite This affects the reconciler.

if (typeof children === 'string') {
// Special case children as a string to avoid the unnecessary comment.
// TODO: Remove this special case after the general optimization is in place.
target.push(stringToChunk(children));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Needed this to avoid emitting the extra comment in the <title> tag.

@@ -10,23 +10,29 @@ function LoadingIndicator() {
return <div className={theme + '-loading'}>Loading...</div>;
}

export default function App({assets}) {
function Content() {
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 extracted this so that you can add a throw in this to test the error behavior. You can't throw in App because there's no Suspense around it.

@sizebot
Copy link

sizebot commented Apr 15, 2021

Comparing: 11b0759...04cd737

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 = 122.72 kB 122.72 kB = 39.39 kB 39.39 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 129.30 kB 129.30 kB = 41.48 kB 41.47 kB
facebook-www/ReactDOM-prod.classic.js = 412.22 kB 412.22 kB = 76.23 kB 76.23 kB
facebook-www/ReactDOM-prod.modern.js = 400.29 kB 400.29 kB = 74.32 kB 74.32 kB
facebook-www/ReactDOMForked-prod.classic.js = 412.22 kB 412.22 kB = 76.24 kB 76.23 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 04cd737

@sebmarkbage sebmarkbage merged commit af5037a into facebook:master Apr 22, 2021
koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
* Wire up fizz to fixture

* Fixed typo conditional
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