Skip to content

Conversation

@jackpope
Copy link
Contributor

@jackpope jackpope commented Jan 26, 2026

Follow up to #35630

We don't currently have any operations that depend on the updating of text nodes added or removed after Fragment mount. But for the sake of completeness and extending the ability to any other reconcilers, this change calls commitNewChildToFragmentInstance and deleteChildFromFragmentInstance on HostText fibers.

Both DOM and Fabric configs early return because we cannot attach event listeners or observers to text. In the future, there could be some stateful Fragment feature that uses text that could extend this.

@meta-cla meta-cla bot added the CLA Signed label Jan 26, 2026
@react-sizebot
Copy link

Comparing: 90b2dd4...5aa6f21

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.04% 609.58 kB 609.80 kB +0.03% 107.80 kB 107.84 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.03% 675.51 kB 675.73 kB +0.03% 118.75 kB 118.79 kB
facebook-www/ReactDOM-prod.classic.js +0.05% 695.14 kB 695.49 kB +0.07% 122.19 kB 122.27 kB
facebook-www/ReactDOM-prod.modern.js +0.05% 685.52 kB 685.87 kB +0.07% 120.59 kB 120.67 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 5aa6f21

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.

2 participants