Skip to content

[test] Intended behavior for not committing a partial tree in a Transition #33040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Apr 28, 2025

Summary

We already have a similar assertion in https://github.com/eps1lon/react/blob/abc59fac23619b5c0354e8472d47dd0726c1cd09/packages/react-reconciler/src/__tests__/ReactTransition-test.js#L789-L790. That test does a lot more so I extracted the important bits that trip up React DevTools.

@react-sizebot
Copy link

react-sizebot commented Apr 28, 2025

Comparing: c498bfc...5410fd6

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 = 527.72 kB 527.72 kB = 93.07 kB 93.07 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 = 633.34 kB 633.34 kB = 111.25 kB 111.25 kB
facebook-www/ReactDOM-prod.classic.js = 671.13 kB 671.13 kB = 117.70 kB 117.70 kB
facebook-www/ReactDOM-prod.modern.js = 661.41 kB 661.41 kB = 116.14 kB 116.14 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 5410fd6

@eps1lon eps1lon changed the title [test] Expected behavior for committing a partial tree in a Transition [test] Intended behavior for not committing a partial tree in a Transition Apr 28, 2025
@eps1lon eps1lon force-pushed the sebbie/transition-commit-partial branch from 296a473 to 5410fd6 Compare April 28, 2025 10:58
@eps1lon eps1lon marked this pull request as ready for review April 28, 2025 10:59
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