Skip to content

Don't skip content in visible offscreen trees for View Transitions#35063

Merged
sebmarkbage merged 1 commit into
facebook:mainfrom
sebmarkbage:vtactivitybug
Nov 6, 2025
Merged

Don't skip content in visible offscreen trees for View Transitions#35063
sebmarkbage merged 1 commit into
facebook:mainfrom
sebmarkbage:vtactivitybug

Conversation

@sebmarkbage
Copy link
Copy Markdown
Contributor

Also, don't not skip hidden trees.

Memoized state is null when an Offscreen boundary (Suspense or Activity) is visible.

This logic was inversed in a couple of View Transition checks which caused pairs to be discovered or not discovered incorrectly for insertion and deletion of Suspense or Activity boundaries.

Also, don't not skip hidden trees.
@meta-cla meta-cla Bot added the CLA Signed label Nov 6, 2025
@github-actions github-actions Bot added the React Core Team Opened by a member of the React Core Team label Nov 6, 2025
@react-sizebot
Copy link
Copy Markdown

Comparing: 5a2205b...6ae9c92

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 +0.05% 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 607.89 kB 607.89 kB = 107.61 kB 107.62 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.05% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 665.80 kB 665.80 kB = 117.32 kB 117.32 kB
facebook-www/ReactDOM-prod.classic.js = 691.63 kB 691.63 kB = 121.68 kB 121.68 kB
facebook-www/ReactDOM-prod.modern.js = 682.06 kB 682.06 kB = 120.06 kB 120.07 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 6ae9c92

Copy link
Copy Markdown
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

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

oopsie

@sebmarkbage sebmarkbage merged commit 37b089a into facebook:main Nov 6, 2025
246 checks passed
github-actions Bot pushed a commit that referenced this pull request Nov 6, 2025
…35063)

Also, don't not skip hidden trees.

Memoized state is null when an Offscreen boundary (Suspense or Activity)
is visible.

This logic was inversed in a couple of View Transition checks which
caused pairs to be discovered or not discovered incorrectly for
insertion and deletion of Suspense or Activity boundaries.

DiffTrain build for [37b089a](37b089a)
sebmarkbage added a commit that referenced this pull request Nov 7, 2025
…tions (#35066)

Follow up to #35063.

I forgot there's another variant of this in the ApplyGesture path.
github-actions Bot pushed a commit to code/lib-react that referenced this pull request Nov 9, 2025
…tions (facebook#35066)

Follow up to facebook#35063.

I forgot there's another variant of this in the ApplyGesture path.

DiffTrain build for [38bdda1](facebook@38bdda1)
github-actions Bot pushed a commit to code/lib-react that referenced this pull request Nov 9, 2025
…tions (facebook#35066)

Follow up to facebook#35063.

I forgot there's another variant of this in the ApplyGesture path.

DiffTrain build for [38bdda1](facebook@38bdda1)
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.

3 participants