Skip to content

Conversation

@captbaritone
Copy link
Contributor

@captbaritone captbaritone commented Apr 3, 2025

It used to be that in __DEV__ we wrapped this renderWithHooks, checkDidRenderIdHook pair in calls to setIsRendering(). However, that dev-only bookkeeping was removed in #29206 leaving this redundant check which runs identical code in dev and in prod.

Test Plan

  • Manually confirm both cases are the same
  • GitHub CI tests

It used to be that in `__DEV__` we wrapped this `renderWithHooks`,
`checkDidRenderIdHook` pair in calls to `setIsRendering()`. However, that
dev-only bookkeeping was removed in facebook#29206
leaving this redundant check which runs identical code in dev and in prod.
@react-sizebot
Copy link

Comparing: f0c767e...8c247a2

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 = 515.56 kB 515.56 kB = 91.84 kB 91.84 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 = 616.30 kB 616.30 kB = 109.03 kB 109.03 kB
facebook-www/ReactDOM-prod.classic.js = 650.16 kB 650.16 kB = 114.89 kB 114.89 kB
facebook-www/ReactDOM-prod.modern.js = 640.44 kB 640.44 kB = 113.33 kB 113.33 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 8c247a2

@captbaritone captbaritone marked this pull request as ready for review April 3, 2025 01:50
@josephsavona josephsavona merged commit 39cad7a into facebook:main Apr 11, 2025
245 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants