Skip to content

Conversation

@sebmarkbage
Copy link
Collaborator

Same as #33716 but without the separate close signal.

We'll need the ref count for separate debug channel anyway but I'm not sure we'll need the separate close signal.

@sebmarkbage sebmarkbage requested a review from unstubbable July 7, 2025 01:55
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jul 7, 2025
@react-sizebot
Copy link

react-sizebot commented Jul 7, 2025

Comparing: 9a645e1...cd60c89

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.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 530.50 kB 530.50 kB = 93.66 kB 93.66 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 655.04 kB 655.04 kB = 115.35 kB 115.35 kB
facebook-www/ReactDOM-prod.classic.js = 675.12 kB 675.12 kB = 118.77 kB 118.77 kB
facebook-www/ReactDOM-prod.modern.js = 665.54 kB 665.54 kB = 117.13 kB 117.13 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable-semver/react-server/cjs/react-server-flight.production.js +0.56% 60.27 kB 60.61 kB +0.42% 12.10 kB 12.15 kB
oss-stable/react-server/cjs/react-server-flight.production.js +0.56% 60.27 kB 60.61 kB +0.42% 12.10 kB 12.15 kB
oss-experimental/react-server/cjs/react-server-flight.production.js +0.53% 65.87 kB 66.22 kB +0.33% 12.99 kB 13.03 kB
oss-stable-semver/react-server/cjs/react-server-flight.development.js +0.23% 125.26 kB 125.54 kB +0.27% 22.74 kB 22.80 kB
oss-stable/react-server/cjs/react-server-flight.development.js +0.23% 125.26 kB 125.54 kB +0.27% 22.74 kB 22.80 kB

Generated by 🚫 dangerJS against cd60c89

Copy link
Collaborator

@unstubbable unstubbable left a comment

Choose a reason for hiding this comment

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

We also need to change this line, don't we?

request.pendingChunks--;

The Postpone changes seem unrelated. Are you starting to clean up already?

Comment on lines +4210 to +4214
if (debug) {
request.pendingDebugChunks++;
} else {
request.pendingChunks++; // Extra chunk for the header.
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we co-locate this with the if/else below?

Copy link
Collaborator Author

@sebmarkbage sebmarkbage Jul 7, 2025

Choose a reason for hiding this comment

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

It might be misleading. It’s unfortunate the way it’s set up now that we add counts separately from pushing the chunks. We have to sometimes since they’re not always resolved immediately.

In this case this increment is not an exact pair with the push like it is in some other places. This is actually just one of two increments. So it might be misleading.

It’s more colocated with the header than the push.

@sebmarkbage
Copy link
Collaborator Author

I never implemented the postpone ones correctly in the first place for the debug channel so I just removed those branches. Treated as errors. Imminent deletion anyway.

@sebmarkbage
Copy link
Collaborator Author

We also need to change this line, don't we?

Fixed.

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