Skip to content

Conversation

jackpope
Copy link
Contributor

Stacked on #34533 for root fragment handling

This is the same approach as DOM, where we call getRootNode on the parent.

Tests are in react-native using Fantom.

@react-sizebot
Copy link

react-sizebot commented Sep 20, 2025

Comparing: 8bb7241...1ca267f

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 = 534.43 kB 534.43 kB = 94.33 kB 94.33 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 = 663.69 kB 663.69 kB = 117.00 kB 117.00 kB
facebook-www/ReactDOM-prod.classic.js = 687.59 kB 687.59 kB = 121.04 kB 121.04 kB
facebook-www/ReactDOM-prod.modern.js = 678.02 kB 678.02 kB = 119.40 kB 119.40 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 1ca267f

This is the same approach as DOM, where we call getRootNode on the parent.

Tests are in react-native using Fantom.
@jackpope jackpope merged commit e866b1d into facebook:main Oct 3, 2025
241 checks passed
jackpope added a commit that referenced this pull request Oct 3, 2025
Stacked on #34544 

We only have getBoundingClientRect available from RN currently. This
should work as a substitute for this case because the equivalent of
multi-rect elements in RN is a nested Text component. We only include
the rects of top-level host components here so we can assume that
calling getBoundingClientRect on each child is the same result.

Tested in react-native with Fantom.
github-actions bot pushed a commit that referenced this pull request Oct 3, 2025
Stacked on #34533 for root fragment handling

This is the same approach as DOM, where we call getRootNode on the
parent.

Tests are in react-native using Fantom.

DiffTrain build for [e866b1d](e866b1d)
github-actions bot pushed a commit that referenced this pull request Oct 3, 2025
Stacked on #34544

We only have getBoundingClientRect available from RN currently. This
should work as a substitute for this case because the equivalent of
multi-rect elements in RN is a nested Text component. We only include
the rects of top-level host components here so we can assume that
calling getBoundingClientRect on each child is the same result.

Tested in react-native with Fantom.

DiffTrain build for [74dee8e](74dee8e)
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