Skip to content

Minor DOM FragmentInstance refactors#35641

Merged
jackpope merged 4 commits intofacebook:mainfrom
jackpope:fr-todos
Feb 11, 2026
Merged

Minor DOM FragmentInstance refactors#35641
jackpope merged 4 commits intofacebook:mainfrom
jackpope:fr-todos

Conversation

@jackpope
Copy link
Contributor

@jackpope jackpope commented Jan 27, 2026

Handles TODOs, small follow up refactors

@react-sizebot
Copy link

react-sizebot commented Jan 28, 2026

Comparing: 90b2dd4...252ae8b

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.84 kB 6.84 kB = 1.88 kB 1.88 kB
oss-stable/react-dom/cjs/react-dom-client.production.js +0.08% 609.58 kB 610.04 kB +0.07% 107.80 kB 107.88 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB = 1.88 kB 1.88 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js +0.07% 675.51 kB 675.97 kB +0.06% 118.75 kB 118.83 kB
facebook-www/ReactDOM-prod.classic.js +0.07% 695.14 kB 695.63 kB +0.08% 122.19 kB 122.29 kB
facebook-www/ReactDOM-prod.modern.js +0.07% 685.52 kB 686.01 kB +0.08% 120.59 kB 120.68 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 252ae8b

@jackpope jackpope requested a review from hoxyq February 5, 2026 20:38
@@ -3056,13 +3056,13 @@ function indexOfEventListener(
listener: EventListener,
optionsOrUseCapture: void | EventListenerOptionsOrUseCapture,
): number {
const normalizedOptions = normalizeListenerOptions(optionsOrUseCapture);
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't really look like a hot path, but might be worth adding an early-return check for eventListeners size?

if (eventListeners.length === 0) {
  return -1;
}

@jackpope jackpope merged commit cd515d7 into facebook:main Feb 11, 2026
457 of 458 checks passed
@jackpope jackpope deleted the fr-todos branch February 11, 2026 15:03
github-actions bot pushed a commit that referenced this pull request Feb 11, 2026
Handles TODOs, small follow up refactors

DiffTrain build for [cd515d7](cd515d7)
github-actions bot pushed a commit that referenced this pull request Feb 11, 2026
Handles TODOs, small follow up refactors

DiffTrain build for [cd515d7](cd515d7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants