Skip to content

Use a shared noop function from shared/noop #33154

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
May 9, 2025

Conversation

sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented May 8, 2025

We use noop functions in a lot of places as place holders. I don't think there's any real optimizations we get from having separate instances. This moves them to use a common instance in shared/noop.

@sebmarkbage sebmarkbage requested review from rickhanlonii and gnoff May 8, 2025 17:22
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label May 8, 2025
@react-sizebot
Copy link

react-sizebot commented May 8, 2025

Comparing: 9b79292...75f9a0a

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 = 528.13 kB 528.09 kB = 93.19 kB 93.17 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 = 646.45 kB 646.40 kB = 113.72 kB 113.71 kB
facebook-www/ReactDOM-prod.classic.js = 675.07 kB 675.01 kB = 118.57 kB 118.54 kB
facebook-www/ReactDOM-prod.modern.js = 665.35 kB 665.29 kB = 116.96 kB 116.93 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 75f9a0a

@sebmarkbage sebmarkbage merged commit 21fdf30 into facebook:main May 9, 2025
239 checks passed
github-actions bot pushed a commit that referenced this pull request May 9, 2025
Stacked on #33150.

We use `noop` functions in a lot of places as place holders. I don't
think there's any real optimizations we get from having separate
instances. This moves them to use a common instance in `shared/noop`.

DiffTrain build for [21fdf30](21fdf30)
github-actions bot pushed a commit that referenced this pull request May 9, 2025
Stacked on #33150.

We use `noop` functions in a lot of places as place holders. I don't
think there's any real optimizations we get from having separate
instances. This moves them to use a common instance in `shared/noop`.

DiffTrain build for [21fdf30](21fdf30)
github-actions bot pushed a commit to code/lib-react that referenced this pull request May 9, 2025
Stacked on facebook#33150.

We use `noop` functions in a lot of places as place holders. I don't
think there's any real optimizations we get from having separate
instances. This moves them to use a common instance in `shared/noop`.

DiffTrain build for [21fdf30](facebook@21fdf30)
github-actions bot pushed a commit to code/lib-react that referenced this pull request May 9, 2025
Stacked on facebook#33150.

We use `noop` functions in a lot of places as place holders. I don't
think there's any real optimizations we get from having separate
instances. This moves them to use a common instance in `shared/noop`.

DiffTrain build for [21fdf30](facebook@21fdf30)
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