Skip to content

Conversation

@sebmarkbage
Copy link
Collaborator

Stacked on #32786.

startGestureTransition doesn't have a concept of two directions. It's just a start and end range now.

@react-sizebot
Copy link

react-sizebot commented Mar 29, 2025

Comparing: 0a7cf20...57e6866

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.11% 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 515.28 kB 515.28 kB = 91.81 kB 91.81 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB +0.11% 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 613.34 kB 613.01 kB = 108.49 kB 108.37 kB
facebook-www/ReactDOM-prod.classic.js = 648.21 kB 648.21 kB = 114.54 kB 114.54 kB
facebook-www/ReactDOM-prod.modern.js = 638.49 kB 638.49 kB = 112.95 kB 112.96 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-art/cjs/react-art.production.js +0.52% 337.87 kB 339.62 kB +0.62% 57.31 kB 57.66 kB
oss-experimental/react-art/cjs/react-art.development.js +0.32% 635.31 kB 637.35 kB +0.38% 101.35 kB 101.74 kB
test_utils/ReactAllWarnings.js = 64.28 kB 64.11 kB = 16.15 kB 16.09 kB

Generated by 🚫 dangerJS against 57e6866

It's just a start and end range now.
@sebmarkbage sebmarkbage merged commit 8b2046d into facebook:main Apr 1, 2025
241 checks passed
sebmarkbage added a commit that referenced this pull request Apr 1, 2025
Stacked on #32788.

Normally we track `addTransitionType` globally because of the async gap
that can happen in Actions where we lack AsyncContext to associate it
with a particular Transition. This unfortunately also means it's
possible to call outside of `startTransition` which is something we want
to warn for.

We need to be able to distinguish whether `addTransitionType` is for a
regular Transition or a Gesture Transition though.

Since `startGestureTransition` is only synchronous we can track it
within that execution scope and move it to a separate set. Since we know
for sure which call owns it we can properly associate it with that
specific provider's `ScheduledGesture`.

This does not yet handle calling `addTransitionType` inside the render
phase of a gesture. That would currently still be associated with the
next Transition instead.
github-actions bot pushed a commit that referenced this pull request Apr 1, 2025
Stacked on #32786.

`startGestureTransition` doesn't have a concept of two directions. It's
just a start and end range now.

DiffTrain build for [8b2046d](8b2046d)
github-actions bot pushed a commit that referenced this pull request Apr 1, 2025
Stacked on #32788.

Normally we track `addTransitionType` globally because of the async gap
that can happen in Actions where we lack AsyncContext to associate it
with a particular Transition. This unfortunately also means it's
possible to call outside of `startTransition` which is something we want
to warn for.

We need to be able to distinguish whether `addTransitionType` is for a
regular Transition or a Gesture Transition though.

Since `startGestureTransition` is only synchronous we can track it
within that execution scope and move it to a separate set. Since we know
for sure which call owns it we can properly associate it with that
specific provider's `ScheduledGesture`.

This does not yet handle calling `addTransitionType` inside the render
phase of a gesture. That would currently still be associated with the
next Transition instead.

DiffTrain build for [0b1a9e9](0b1a9e9)
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