Skip to content

Conversation

@sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented Sep 19, 2025

Stacked on #34522.

Screenshot 2025-09-19 at 6 37 28 PM

We already cover the time between "Starting Animation" and "Remaining Effects" as "Animating". However, if the effects are forced then we can still be animating after that. This fills in that gap.

This also fills in the gap if another render starts before the animation finishes on the same track. It'll mark the blank space between the previous render finishing and the next render starting as "Animating".

This should correspond roughly to the native "Animations" track.

@meta-cla meta-cla bot added the CLA Signed label Sep 19, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Sep 19, 2025
@react-sizebot
Copy link

react-sizebot commented Sep 19, 2025

Comparing: b204edd...537674f

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 +0.02% 534.33 kB 534.43 kB +0.01% 94.33 kB 94.34 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 +0.02% 663.70 kB 663.82 kB +0.01% 117.00 kB 117.01 kB
facebook-www/ReactDOM-prod.classic.js +0.02% 687.62 kB 687.73 kB +0.02% 121.02 kB 121.04 kB
facebook-www/ReactDOM-prod.modern.js +0.02% 678.04 kB 678.16 kB +0.02% 119.37 kB 119.39 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactART-dev.modern.js +1.83% 751.36 kB 765.09 kB +1.74% 117.25 kB 119.29 kB
facebook-www/ReactART-dev.classic.js +1.80% 760.89 kB 774.61 kB +1.72% 119.00 kB 121.04 kB
oss-experimental/react-art/cjs/react-art.development.js +0.92% 708.48 kB 715.02 kB +1.00% 111.84 kB 112.95 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.js +0.56% 549.90 kB 552.98 kB +0.54% 85.98 kB 86.44 kB
oss-experimental/react-dom/cjs/react-dom-profiling.profiling.js +0.41% 733.45 kB 736.43 kB +0.34% 127.23 kB 127.67 kB
facebook-www/ReactDOM-profiling.modern.js +0.39% 756.61 kB 759.60 kB +0.32% 130.09 kB 130.51 kB
facebook-www/ReactDOM-profiling.classic.js +0.39% 764.71 kB 767.70 kB +0.30% 131.47 kB 131.87 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js +0.31% 839.17 kB 841.73 kB +0.39% 131.12 kB 131.63 kB
facebook-www/ReactReconciler-dev.modern.js +0.30% 869.70 kB 872.28 kB +0.31% 134.58 kB 134.99 kB
facebook-www/ReactReconciler-dev.classic.js +0.29% 878.93 kB 881.51 kB +0.31% 136.31 kB 136.73 kB
oss-experimental/react-dom/cjs/react-dom-client.development.js +0.21% 1,221.81 kB 1,224.42 kB +0.26% 203.51 kB 204.04 kB
oss-experimental/react-dom/cjs/react-dom-profiling.development.js +0.21% 1,238.19 kB 1,240.81 kB +0.25% 206.32 kB 206.83 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js +0.21% 1,238.35 kB 1,240.97 kB +0.26% 207.13 kB 207.66 kB
facebook-www/ReactDOM-dev.modern.js +0.21% 1,261.92 kB 1,264.56 kB +0.21% 208.18 kB 208.63 kB
facebook-www/ReactDOM-dev.classic.js +0.21% 1,271.09 kB 1,273.73 kB +0.21% 209.99 kB 210.43 kB
facebook-www/ReactDOMTesting-dev.modern.js +0.21% 1,278.46 kB 1,281.09 kB +0.21% 211.96 kB 212.40 kB
facebook-www/ReactDOMTesting-dev.classic.js +0.20% 1,287.63 kB 1,290.26 kB +0.21% 213.76 kB 214.22 kB

Generated by 🚫 dangerJS against 537674f

Stops when the animation finishes which is not the same as when the passive
effects commit. It can be after.
…of the animation

This is outside of regular rendering. If we're rendering then that takes precedence.
…mating

If we start a new render on the same track before the previous one finishes
we'll start logging new renders on that track but we should first log the
time between the two renders as animating.
In the gap when a commit is delayed, we don't know which lanes are currently
pending. We can use the same flag as the ones we use when we're in the
middle of commit effects by setting it earlier.

This ensures that we don't write an "Animating" track during this period
since it'll get some other suspended/delay track logged (for example
"waiting on previous animation".
@sebmarkbage sebmarkbage merged commit b4fe1e6 into facebook:main Sep 20, 2025
241 checks passed
sebmarkbage added a commit that referenced this pull request Sep 20, 2025
…races (#34539)

Stacked on #34538.

Track the Task of the first ViewTransition that we detected as
animating. Use this as the Task as "Starting Animation", "Animating"
etc. That way you can see which ViewTransition spawned the Animation.
Although it's likely to be multiple.

<img width="757" height="393" alt="Screenshot 2025-09-19 at 10 19 18 PM"
src="https://github.com/user-attachments/assets/a6cdcb89-bd02-40ec-b3c3-11121c29e892"
/>
github-actions bot pushed a commit that referenced this pull request Sep 20, 2025
Stacked on #34522.

<img width="1025" height="200" alt="Screenshot 2025-09-19 at 6 37 28 PM"
src="https://github.com/user-attachments/assets/f25900f6-6503-48b1-876d-bd6697a29c6f"
/>

We already cover the time between "Starting Animation" and "Remaining
Effects" as "Animating". However, if the effects are forced then we can
still be animating after that. This fills in that gap.

This also fills in the gap if another render starts before the animation
finishes on the same track. It'll mark the blank space between the
previous render finishing and the next render starting as "Animating".

This should correspond roughly to the native "Animations" track.

DiffTrain build for [b4fe1e6](b4fe1e6)
github-actions bot pushed a commit that referenced this pull request Sep 20, 2025
Stacked on #34522.

<img width="1025" height="200" alt="Screenshot 2025-09-19 at 6 37 28 PM"
src="https://github.com/user-attachments/assets/f25900f6-6503-48b1-876d-bd6697a29c6f"
/>

We already cover the time between "Starting Animation" and "Remaining
Effects" as "Animating". However, if the effects are forced then we can
still be animating after that. This fills in that gap.

This also fills in the gap if another render starts before the animation
finishes on the same track. It'll mark the blank space between the
previous render finishing and the next render starting as "Animating".

This should correspond roughly to the native "Animations" track.

DiffTrain build for [b4fe1e6](b4fe1e6)
github-actions bot pushed a commit that referenced this pull request Sep 20, 2025
…races (#34539)

Stacked on #34538.

Track the Task of the first ViewTransition that we detected as
animating. Use this as the Task as "Starting Animation", "Animating"
etc. That way you can see which ViewTransition spawned the Animation.
Although it's likely to be multiple.

<img width="757" height="393" alt="Screenshot 2025-09-19 at 10 19 18 PM"
src="https://github.com/user-attachments/assets/a6cdcb89-bd02-40ec-b3c3-11121c29e892"
/>

DiffTrain build for [d91d28c](d91d28c)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Sep 21, 2025
…races (facebook#34539)

Stacked on facebook#34538.

Track the Task of the first ViewTransition that we detected as
animating. Use this as the Task as "Starting Animation", "Animating"
etc. That way you can see which ViewTransition spawned the Animation.
Although it's likely to be multiple.

<img width="757" height="393" alt="Screenshot 2025-09-19 at 10 19 18 PM"
src="https://github.com/user-attachments/assets/a6cdcb89-bd02-40ec-b3c3-11121c29e892"
/>

DiffTrain build for [d91d28c](facebook@d91d28c)
github-actions bot pushed a commit to code/lib-react that referenced this pull request Sep 21, 2025
…races (facebook#34539)

Stacked on facebook#34538.

Track the Task of the first ViewTransition that we detected as
animating. Use this as the Task as "Starting Animation", "Animating"
etc. That way you can see which ViewTransition spawned the Animation.
Although it's likely to be multiple.

<img width="757" height="393" alt="Screenshot 2025-09-19 at 10 19 18 PM"
src="https://github.com/user-attachments/assets/a6cdcb89-bd02-40ec-b3c3-11121c29e892"
/>

DiffTrain build for [d91d28c](facebook@d91d28c)
sebmarkbage added a commit that referenced this pull request Sep 24, 2025
…ing (#34548)

Stacked on #34546.

Same as #34538 but for gestures.

Includes various fixes.

This shows how it ends with a Transition when you release in the
committed state. Note how the Animation of the Gesture continues until
the Transition is done so that the handoff is seamless.

<img width="853" height="134" alt="Screenshot 2025-09-20 at 7 37 29 PM"
src="https://github.com/user-attachments/assets/6192a033-4bec-43b9-884b-77e3a6f00da6"
/>
github-actions bot pushed a commit that referenced this pull request Sep 24, 2025
…ing (#34548)

Stacked on #34546.

Same as #34538 but for gestures.

Includes various fixes.

This shows how it ends with a Transition when you release in the
committed state. Note how the Animation of the Gesture continues until
the Transition is done so that the handoff is seamless.

<img width="853" height="134" alt="Screenshot 2025-09-20 at 7 37 29 PM"
src="https://github.com/user-attachments/assets/6192a033-4bec-43b9-884b-77e3a6f00da6"
/>

DiffTrain build for [e233218](e233218)
github-actions bot pushed a commit that referenced this pull request Sep 24, 2025
…ing (#34548)

Stacked on #34546.

Same as #34538 but for gestures.

Includes various fixes.

This shows how it ends with a Transition when you release in the
committed state. Note how the Animation of the Gesture continues until
the Transition is done so that the handoff is seamless.

<img width="853" height="134" alt="Screenshot 2025-09-20 at 7 37 29 PM"
src="https://github.com/user-attachments/assets/6192a033-4bec-43b9-884b-77e3a6f00da6"
/>

DiffTrain build for [e233218](e233218)
EugeneChoi4 pushed a commit to EugeneChoi4/react that referenced this pull request Sep 24, 2025
…ing (facebook#34548)

Stacked on facebook#34546.

Same as facebook#34538 but for gestures.

Includes various fixes.

This shows how it ends with a Transition when you release in the
committed state. Note how the Animation of the Gesture continues until
the Transition is done so that the handoff is seamless.

<img width="853" height="134" alt="Screenshot 2025-09-20 at 7 37 29 PM"
src="https://github.com/user-attachments/assets/6192a033-4bec-43b9-884b-77e3a6f00da6"
/>
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