-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
[Fizz] Wire up the Fixture #21273
Conversation
@@ -892,7 +892,7 @@ export function commitHydratedSuspenseInstance( | |||
export function shouldDeleteUnhydratedTailInstances( | |||
parentType: string, | |||
): boolean { | |||
return parentType !== 'head' || parentType !== 'body'; | |||
return parentType !== 'head' && parentType !== 'body'; |
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.
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.
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.
@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)); |
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.
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() { |
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 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.
fa800f0
to
295d168
Compare
295d168
to
3744ae5
Compare
Comparing: 11b0759...04cd737 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
3744ae5
to
04cd737
Compare
* Wire up fizz to fixture * Fixed typo conditional
We're now far enough along in parity to run the fixture.