Skip to content

[Fiber] Avoid return value from commitBeforeMutationEffects #31922

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

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented Dec 26, 2024

This is behind an unusual flag (enableCreateEventHandleAPI) that doesn't serve a special return value. I'll be collecting other flags from this phase too.

We can just use the global flag and reset it before the next mutation phase. Unlike focusedInstanceHandle this doesn't leak any memory in the meantime.

This is an unusual flag that doesn't serve a special return value.

We can just use the global flag and reset it before the next mutation phase.
Unlike focusedInstanceHandle this doesn't leak any memory in the meantime.
Copy link

vercel bot commented Dec 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2024 9:09pm

@react-sizebot
Copy link

Comparing: fc8a898...48b3d39

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 = 511.38 kB 511.30 kB = 91.38 kB 91.34 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 = 516.17 kB 516.07 kB = 92.23 kB 92.19 kB
facebook-www/ReactDOM-prod.classic.js = 593.09 kB 592.76 kB = 104.45 kB 104.38 kB
facebook-www/ReactDOM-prod.modern.js = 583.35 kB 583.02 kB = 102.90 kB 102.83 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.classic.js = 648.29 kB 646.40 kB = 103.22 kB 102.88 kB
facebook-www/ReactART-dev.modern.js = 638.41 kB 636.52 kB = 101.26 kB 100.92 kB
facebook-www/ReactART-prod.classic.js = 365.47 kB 363.83 kB = 61.25 kB 60.94 kB
facebook-www/ReactART-prod.modern.js = 355.74 kB 354.10 kB = 59.67 kB 59.37 kB

Generated by 🚫 dangerJS against 3ea4972

Copy link
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.

LGTM, @acdlite added this here, not sure if there was a reason because before that it worked more similar to how this PR does it.

@sebmarkbage sebmarkbage merged commit d8b903f into facebook:main Jan 2, 2025
187 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 2, 2025
This is behind an unusual flag (enableCreateEventHandleAPI) that doesn't
serve a special return value. I'll be collecting other flags from this
phase too.

We can just use the global flag and reset it before the next mutation
phase. Unlike focusedInstanceHandle this doesn't leak any memory in the
meantime.

DiffTrain build for [d8b903f](d8b903f)
github-actions bot pushed a commit that referenced this pull request Jan 2, 2025
This is behind an unusual flag (enableCreateEventHandleAPI) that doesn't
serve a special return value. I'll be collecting other flags from this
phase too.

We can just use the global flag and reset it before the next mutation
phase. Unlike focusedInstanceHandle this doesn't leak any memory in the
meantime.

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