Skip to content
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

refactor(getComponentName): Use element types instead of fiber types #15638

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented May 13, 2019

Since fiber types can change during work (see MemoComponent -> SimpleMemoComponent) it seems more appropriate to use the elementType instead to determine a component name.

Makes #15313 easier (see #15313 (comment)). It would also enable #14319 since we no longer rely on internal data structures (fiber types) but public element types.

@sizebot
Copy link

sizebot commented May 13, 2019

ReactDOM: size: 0.0%, gzip: 0.0%

Details of bundled changes.

Comparing: 07da821...899a0b3

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.profiling.min.js 0.0% 0.0% 109.04 KB 109.07 KB 34.63 KB 34.64 KB NODE_PROFILING
ReactDOM-dev.js +0.1% 0.0% 881.39 KB 881.91 KB 196.5 KB 196.59 KB FB_WWW_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% 0.0% 10.69 KB 10.69 KB 3.67 KB 3.67 KB UMD_PROD
ReactDOMServer-dev.js +0.1% +0.2% 135.44 KB 135.63 KB 34.79 KB 34.85 KB FB_WWW_DEV
react-dom-unstable-fire.development.js +0.1% 0.0% 861.83 KB 862.29 KB 196.64 KB 196.71 KB UMD_DEV
react-dom-unstable-fire.production.min.js 0.0% 0.0% 105.71 KB 105.75 KB 34.38 KB 34.39 KB UMD_PROD
react-dom-unstable-fire.profiling.min.js 0.0% 0.0% 108.87 KB 108.9 KB 35.39 KB 35.4 KB UMD_PROFILING
react-dom-unstable-fire.development.js +0.1% 0.0% 856.15 KB 856.61 KB 195.02 KB 195.08 KB NODE_DEV
react-dom-server.node.development.js +0.1% +0.1% 135.18 KB 135.37 KB 35.77 KB 35.82 KB NODE_DEV
react-dom-unstable-fire.production.min.js 0.0% 0.0% 105.71 KB 105.75 KB 33.78 KB 33.79 KB NODE_PROD
react-dom-server.node.production.min.js 0.0% 0.0% 19.98 KB 19.98 KB 7.53 KB 7.53 KB NODE_PROD
react-dom.development.js +0.1% 0.0% 861.49 KB 861.94 KB 196.5 KB 196.56 KB UMD_DEV
react-dom-unstable-fire.profiling.min.js 0.0% 0.0% 109.05 KB 109.08 KB 34.64 KB 34.65 KB NODE_PROFILING
react-dom-server.browser.development.js +0.1% +0.1% 137.11 KB 137.3 KB 36.16 KB 36.21 KB UMD_DEV
react-dom.production.min.js 0.0% 0.0% 105.7 KB 105.73 KB 34.38 KB 34.38 KB UMD_PROD
ReactFire-dev.js +0.1% 0.0% 880.6 KB 881.12 KB 196.43 KB 196.52 KB FB_WWW_DEV
react-dom.profiling.min.js 0.0% 0.0% 108.85 KB 108.89 KB 35.38 KB 35.39 KB UMD_PROFILING
ReactFire-prod.js 🔺+0.1% 0.0% 344.89 KB 345.13 KB 63.54 KB 63.56 KB FB_WWW_PROD
react-dom.development.js +0.1% 0.0% 855.81 KB 856.26 KB 194.88 KB 194.94 KB NODE_DEV
ReactFire-profiling.js +0.1% 0.0% 350.16 KB 350.4 KB 64.43 KB 64.46 KB FB_WWW_PROFILING
react-dom-server.browser.development.js +0.1% +0.1% 133.24 KB 133.43 KB 35.22 KB 35.27 KB NODE_DEV
react-dom.production.min.js 0.0% 0.0% 105.7 KB 105.73 KB 33.77 KB 33.78 KB NODE_PROD
ReactDOM-prod.js 🔺+0.1% 0.0% 356.91 KB 357.17 KB 65.99 KB 66 KB FB_WWW_PROD
ReactDOMServer-prod.js 🔺+0.4% 🔺+0.1% 47.93 KB 48.12 KB 11.03 KB 11.04 KB FB_WWW_PROD
ReactDOM-profiling.js +0.1% 0.0% 362.15 KB 362.42 KB 66.88 KB 66.9 KB FB_WWW_PROFILING
react-dom-unstable-native-dependencies.development.js 0.0% 0.0% 60.43 KB 60.43 KB 15.72 KB 15.72 KB NODE_DEV
react-dom-unstable-fizz.node.development.js 0.0% +0.1% 3.88 KB 3.88 KB 1.51 KB 1.51 KB NODE_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% 0.0% 10.43 KB 10.43 KB 3.56 KB 3.57 KB NODE_PROD
react-dom-unstable-fizz.node.production.min.js 0.0% -0.1% 1.1 KB 1.1 KB 667 B 666 B NODE_PROD
react-dom-test-utils.production.min.js 0.0% -0.0% 10.81 KB 10.81 KB 3.97 KB 3.97 KB UMD_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.1% 1.21 KB 1.21 KB 706 B 705 B UMD_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.2% 1.05 KB 1.05 KB 637 B 636 B NODE_PROD

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactART-dev.js +0.1% +0.1% 535.4 KB 535.9 KB 112.16 KB 112.26 KB FB_WWW_DEV
react-art.development.js +0.1% +0.1% 594.09 KB 594.53 KB 130.35 KB 130.41 KB UMD_DEV
react-art.production.min.js 0.0% 🔺+0.1% 97.11 KB 97.14 KB 29.91 KB 29.93 KB UMD_PROD
react-art.development.js +0.1% +0.1% 524.99 KB 525.43 KB 112.88 KB 112.94 KB NODE_DEV
react-art.production.min.js 0.0% 0.0% 62.09 KB 62.12 KB 19.19 KB 19.2 KB NODE_PROD
ReactART-prod.js 🔺+0.1% 🔺+0.1% 202.95 KB 203.18 KB 34.56 KB 34.59 KB FB_WWW_PROD

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-test-renderer.development.js +0.1% +0.1% 538.76 KB 539.2 KB 115.77 KB 115.83 KB UMD_DEV
react-test-renderer.production.min.js 🔺+0.1% -0.0% 63.42 KB 63.46 KB 19.63 KB 19.63 KB UMD_PROD
ReactShallowRenderer-dev.js +0.6% +0.4% 34.79 KB 34.98 KB 8.74 KB 8.77 KB FB_WWW_DEV
react-test-renderer.development.js +0.1% +0.1% 534.3 KB 534.74 KB 114.66 KB 114.71 KB NODE_DEV
react-test-renderer.production.min.js 🔺+0.1% 0.0% 63.11 KB 63.15 KB 19.42 KB 19.42 KB NODE_PROD
ReactTestRenderer-dev.js +0.1% +0.1% 546.77 KB 547.27 KB 114.69 KB 114.79 KB FB_WWW_DEV
react-test-renderer-shallow.development.js +0.5% +0.3% 41.84 KB 42.04 KB 10.82 KB 10.86 KB UMD_DEV
react-test-renderer-shallow.production.min.js 0.0% 🔺+0.1% 11.6 KB 11.6 KB 3.55 KB 3.55 KB UMD_PROD
react-test-renderer-shallow.development.js +0.5% +0.4% 35.98 KB 36.17 KB 9.45 KB 9.49 KB NODE_DEV
react-test-renderer-shallow.production.min.js 0.0% 🔺+0.1% 11.74 KB 11.74 KB 3.67 KB 3.67 KB NODE_PROD

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactFabric-dev.js +0.1% +0.1% 658.66 KB 659.19 KB 140.05 KB 140.13 KB RN_FB_DEV
ReactFabric-prod.js 🔺+0.1% 🔺+0.1% 245.54 KB 245.72 KB 42.51 KB 42.54 KB RN_FB_PROD
ReactNativeRenderer-dev.js +0.1% +0.1% 669.79 KB 670.31 KB 142.67 KB 142.75 KB RN_OSS_DEV
ReactFabric-profiling.js +0.1% +0.1% 253.69 KB 253.88 KB 44.08 KB 44.11 KB RN_FB_PROFILING
ReactNativeRenderer-prod.js 🔺+0.1% 🔺+0.1% 252.75 KB 252.93 KB 43.71 KB 43.75 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js +0.1% +0.1% 260.88 KB 261.06 KB 45.34 KB 45.37 KB RN_OSS_PROFILING
ReactNativeRenderer-dev.js +0.1% +0.1% 669.88 KB 670.41 KB 142.72 KB 142.8 KB RN_FB_DEV
ReactNativeRenderer-prod.js 🔺+0.1% 🔺+0.1% 252.74 KB 252.92 KB 43.72 KB 43.76 KB RN_FB_PROD
ReactNativeRenderer-profiling.js +0.1% 0.0% 260.87 KB 261.05 KB 45.35 KB 45.38 KB RN_FB_PROFILING
ReactFabric-dev.js +0.1% +0.1% 658.56 KB 659.08 KB 140.01 KB 140.1 KB RN_OSS_DEV
ReactFabric-prod.js 🔺+0.1% 0.0% 245.53 KB 245.71 KB 42.5 KB 42.53 KB RN_OSS_PROD
ReactFabric-profiling.js +0.1% +0.1% 253.7 KB 253.88 KB 44.08 KB 44.1 KB RN_OSS_PROFILING

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler-reflection.development.js +1.1% +0.8% 19.05 KB 19.26 KB 6.08 KB 6.13 KB NODE_DEV
react-reconciler-reflection.production.min.js 0.0% 🔺+0.1% 2.51 KB 2.51 KB 1.11 KB 1.11 KB NODE_PROD
react-reconciler-persistent.development.js +0.1% +0.1% 520.73 KB 521.17 KB 110.35 KB 110.41 KB NODE_DEV
react-reconciler-persistent.production.min.js 🔺+0.1% 0.0% 63.27 KB 63.31 KB 19 KB 19.01 KB NODE_PROD
react-reconciler.development.js +0.1% +0.1% 523.05 KB 523.5 KB 111.35 KB 111.42 KB NODE_DEV
react-reconciler.production.min.js 🔺+0.1% 0.0% 63.26 KB 63.29 KB 19 KB 19 KB NODE_PROD

Generated by 🚫 dangerJS

// Host root, text node or just invalid type.
return null;
}
if (__DEV__) {
if (typeof (type: any).tag === 'number') {
// TODO: protect against potential false positives from user-defined statics
if (typeof (elementType: any).tag === 'number') {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The check was introduced in #13197. Seems like this was meant as a helper for the transition period since it was used on the full fiber previously.

It's probably better to remove this altogether. An unknown component name should appear in the tests leading to a fail instead of a different error message.

Using _debugID is likely best to reduce the number of false positives.

Using isValidElementType leads to breakage in the internal React.lazy tests.

@eps1lon eps1lon marked this pull request as ready for review May 13, 2019 20:20
@eps1lon eps1lon force-pushed the refactor/getComponentName/use-elementType branch from 8c1450f to 3134205 Compare May 14, 2019 12:59
@eps1lon eps1lon force-pushed the refactor/getComponentName/use-elementType branch from 3134205 to 899a0b3 Compare June 3, 2019 18:32
@eps1lon eps1lon force-pushed the refactor/getComponentName/use-elementType branch from 899a0b3 to 5a6abe7 Compare August 29, 2019 14:33
@sizebot
Copy link

sizebot commented Aug 29, 2019

ReactDOM: size: 0.0%, gzip: 0.0%

Details of bundled changes.

Comparing: 980112b...73d54f5

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-art.development.js +0.1% 0.0% 655.69 KB 656.16 KB 142.92 KB 142.99 KB UMD_DEV
react-art.production.min.js 0.0% 0.0% 101.93 KB 101.96 KB 31.17 KB 31.17 KB UMD_PROD
react-art.development.js +0.1% +0.1% 586.37 KB 586.84 KB 125.47 KB 125.54 KB NODE_DEV
react-art.production.min.js 0.0% 0.0% 66.94 KB 66.96 KB 20.4 KB 20.4 KB NODE_PROD
ReactART-dev.js +0.1% +0.1% 601.41 KB 601.92 KB 125.19 KB 125.27 KB FB_WWW_DEV
ReactART-prod.js 🔺+0.1% 🔺+0.1% 222.15 KB 222.33 KB 37.79 KB 37.81 KB FB_WWW_PROD

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.profiling.min.js 0.0% 0.0% 115.32 KB 115.35 KB 36.36 KB 36.37 KB NODE_PROFILING
react-dom-server.browser.development.js +0.1% +0.1% 141.13 KB 141.31 KB 37.02 KB 37.07 KB UMD_DEV
ReactDOM-dev.js +0.1% 0.0% 936.51 KB 937.03 KB 207.08 KB 207.16 KB FB_WWW_DEV
react-dom-server.browser.production.min.js 0.0% 0.0% 19.74 KB 19.74 KB 7.34 KB 7.34 KB UMD_PROD
react-dom-test-utils.development.js 0.0% -0.0% 57.25 KB 57.25 KB 15.78 KB 15.78 KB UMD_DEV
react-dom-test-utils.production.min.js 0.0% -0.0% 11.18 KB 11.18 KB 4.15 KB 4.15 KB UMD_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.1% 1.2 KB 1.2 KB 703 B 702 B UMD_PROD
react-dom-test-utils.development.js 0.0% -0.0% 55.52 KB 55.52 KB 15.45 KB 15.45 KB NODE_DEV
react-dom-unstable-fizz.browser.development.js 0.0% -0.1% 3.61 KB 3.61 KB 1.48 KB 1.48 KB NODE_DEV
react-dom-test-utils.production.min.js 0.0% -0.0% 10.95 KB 10.95 KB 4.09 KB 4.09 KB NODE_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.2% 1.04 KB 1.04 KB 634 B 633 B NODE_PROD
react-dom.development.js +0.1% 0.0% 912.59 KB 913.07 KB 207.05 KB 207.12 KB UMD_DEV
react-dom.production.min.js 0.0% 0.0% 111.71 KB 111.75 KB 36.03 KB 36.05 KB UMD_PROD
react-dom.profiling.min.js 0.0% -0.0% 115.12 KB 115.15 KB 37.07 KB 37.07 KB UMD_PROFILING
react-dom.development.js +0.1% 0.0% 906.68 KB 907.16 KB 205.33 KB 205.41 KB NODE_DEV
react-dom-server.node.development.js +0.1% +0.1% 138.08 KB 138.26 KB 36.25 KB 36.29 KB NODE_DEV
react-dom.production.min.js 0.0% 0.0% 111.68 KB 111.72 KB 35.43 KB 35.44 KB NODE_PROD
react-dom-server.node.production.min.js 0.0% 0.0% 20.07 KB 20.07 KB 7.48 KB 7.49 KB NODE_PROD
ReactDOM-prod.js 🔺+0.1% 0.0% 368.04 KB 368.26 KB 67.43 KB 67.44 KB FB_WWW_PROD
ReactDOM-profiling.js +0.1% 0.0% 372.76 KB 372.98 KB 68.47 KB 68.49 KB FB_WWW_PROFILING
react-dom-server.browser.development.js +0.1% +0.1% 137.06 KB 137.24 KB 36.03 KB 36.07 KB NODE_DEV
ReactDOMServer-dev.js +0.1% +0.1% 141.33 KB 141.52 KB 35.6 KB 35.65 KB FB_WWW_DEV
ReactDOMServer-prod.js 🔺+0.3% 🔺+0.1% 48.13 KB 48.27 KB 11.05 KB 11.06 KB FB_WWW_PROD

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactTestRenderer-dev.js +0.1% +0.1% 612.49 KB 612.99 KB 127.6 KB 127.68 KB FB_WWW_DEV
react-test-renderer-shallow.development.js +0.5% +0.4% 39.21 KB 39.39 KB 9.95 KB 9.99 KB UMD_DEV
react-test-renderer-shallow.development.js +0.5% +0.5% 33.18 KB 33.36 KB 8.49 KB 8.53 KB NODE_DEV
react-test-renderer.development.js +0.1% 0.0% 599.7 KB 600.17 KB 128.25 KB 128.3 KB UMD_DEV
react-test-renderer.production.min.js 0.0% 0.0% 68.87 KB 68.91 KB 21.18 KB 21.19 KB UMD_PROD
ReactShallowRenderer-dev.js +0.5% +0.4% 34.43 KB 34.62 KB 8.41 KB 8.44 KB FB_WWW_DEV
react-test-renderer.development.js +0.1% +0.1% 595.03 KB 595.5 KB 127.04 KB 127.12 KB NODE_DEV
react-test-renderer.production.min.js 0.0% 0.0% 68.56 KB 68.6 KB 20.9 KB 20.9 KB NODE_PROD

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler.development.js +0.1% +0.1% 585.01 KB 585.49 KB 124.17 KB 124.24 KB NODE_DEV
react-reconciler.production.min.js 0.0% 0.0% 68.94 KB 68.97 KB 20.44 KB 20.45 KB NODE_PROD
react-reconciler-reflection.development.js +1.0% +0.7% 19.25 KB 19.43 KB 6.33 KB 6.38 KB NODE_DEV
react-reconciler-persistent.development.js +0.1% +0.1% 582.02 KB 582.49 KB 122.91 KB 122.98 KB NODE_DEV
react-reconciler-persistent.production.min.js 0.0% 0.0% 68.95 KB 68.98 KB 20.45 KB 20.46 KB NODE_PROD

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-prod.js 🔺+0.1% 🔺+0.1% 269.99 KB 270.17 KB 46.28 KB 46.31 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js +0.1% 0.0% 278.4 KB 278.58 KB 47.8 KB 47.83 KB RN_OSS_PROFILING
ReactFabric-prod.js 🔺+0.1% 0.0% 261.69 KB 261.88 KB 44.95 KB 44.97 KB RN_OSS_PROD
ReactFabric-profiling.js +0.1% 0.0% 270.44 KB 270.62 KB 46.47 KB 46.49 KB RN_OSS_PROFILING
ReactFabric-dev.js +0.1% 0.0% 740.63 KB 741.15 KB 156.69 KB 156.75 KB RN_FB_DEV
ReactFabric-prod.js 🔺+0.1% 0.0% 261.7 KB 261.88 KB 44.96 KB 44.98 KB RN_FB_PROD
ReactNativeRenderer-dev.js +0.1% 0.0% 734.07 KB 734.6 KB 155.52 KB 155.6 KB RN_OSS_DEV
ReactFabric-profiling.js +0.1% +0.1% 270.44 KB 270.62 KB 46.48 KB 46.5 KB RN_FB_PROFILING
ReactNativeRenderer-dev.js +0.1% 0.0% 734.23 KB 734.76 KB 155.6 KB 155.68 KB RN_FB_DEV
ReactNativeRenderer-prod.js 🔺+0.1% 🔺+0.1% 269.99 KB 270.17 KB 46.29 KB 46.31 KB RN_FB_PROD
ReactNativeRenderer-profiling.js +0.1% 0.0% 278.39 KB 278.58 KB 47.81 KB 47.83 KB RN_FB_PROFILING
ReactFabric-dev.js +0.1% 0.0% 740.46 KB 740.98 KB 156.61 KB 156.68 KB RN_OSS_DEV

Generated by 🚫 dangerJS against 73d54f5

@eps1lon eps1lon force-pushed the refactor/getComponentName/use-elementType branch from 5a6abe7 to 73d54f5 Compare August 29, 2019 15:05
@stale
Copy link

stale bot commented Jan 10, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Jan 10, 2020
@eps1lon
Copy link
Collaborator Author

eps1lon commented Jan 10, 2020

I'll resolve merge conflicts.

@stale stale bot removed the Resolution: Stale Automatically closed due to inactivity label Jan 10, 2020
@eps1lon eps1lon force-pushed the refactor/getComponentName/use-elementType branch from 73d54f5 to 08485d9 Compare February 27, 2020 12:39
@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 27, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b1f4a5c:

Sandbox Source
React Configuration

@sizebot
Copy link

sizebot commented Feb 27, 2020

Details of bundled changes.

Comparing: 9ea0f67...b1f4a5c

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.development.js +0.1% 0.0% 913.35 KB 913.83 KB 207.57 KB 207.67 KB NODE_DEV
ReactDOMForked-prod.js 0.0% 0.0% 393.44 KB 393.59 KB 73.24 KB 73.25 KB FB_WWW_PROD
react-dom-server.node.development.js +0.2% +0.2% 138.84 KB 139.06 KB 36.68 KB 36.76 KB NODE_DEV
react-dom.production.min.js 0.0% -0.0% 123.71 KB 123.72 KB 39.64 KB 39.64 KB NODE_PROD
ReactDOMForked-profiling.js 0.0% 0.0% 404.06 KB 404.22 KB 74.98 KB 74.99 KB FB_WWW_PROFILING
react-dom-server.browser.development.js +0.1% +0.2% 145.04 KB 145.25 KB 36.88 KB 36.96 KB UMD_DEV
react-dom-test-utils.production.min.js 0.0% -0.1% 10.35 KB 10.35 KB 4.07 KB 4.07 KB UMD_PROD
ReactDOMTesting-dev.js 0.0% +0.1% 953.26 KB 953.74 KB 213.61 KB 213.71 KB FB_WWW_DEV
react-dom-test-utils.development.js 0.0% -0.0% 51.15 KB 51.15 KB 14.9 KB 14.9 KB NODE_DEV
ReactDOMTesting-prod.js 0.0% 0.0% 398.97 KB 399.12 KB 75.47 KB 75.49 KB FB_WWW_PROD
react-dom-test-utils.production.min.js 0.0% -0.0% 10.2 KB 10.2 KB 3.99 KB 3.99 KB NODE_PROD
react-dom-unstable-fizz.browser.development.js 0.0% -0.2% 5.36 KB 5.36 KB 1.8 KB 1.8 KB UMD_DEV
react-dom-unstable-fizz.node.production.min.js 0.0% -0.3% 1.17 KB 1.17 KB 668 B 666 B NODE_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.1% 1.2 KB 1.2 KB 706 B 705 B UMD_PROD
react-dom-unstable-fizz.browser.development.js 0.0% -0.1% 4.87 KB 4.87 KB 1.7 KB 1.7 KB NODE_DEV
react-dom.development.js +0.1% 0.0% 959.36 KB 959.85 KB 210.08 KB 210.18 KB UMD_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.3% 1.01 KB 1.01 KB 617 B 615 B NODE_PROD
react-dom.production.min.js 0.0% 0.0% 123.53 KB 123.53 KB 40.44 KB 40.44 KB UMD_PROD
react-dom.profiling.min.js 0.0% 0.0% 127.48 KB 127.48 KB 41.65 KB 41.65 KB UMD_PROFILING
ReactDOMForked-dev.js 0.0% 0.0% 974.65 KB 975.13 KB 217.8 KB 217.9 KB FB_WWW_DEV
react-dom.profiling.min.js 0.0% -0.0% 127.83 KB 127.83 KB 40.9 KB 40.9 KB NODE_PROFILING
react-dom-server.browser.production.min.js 0.0% -0.0% 20.37 KB 20.37 KB 7.54 KB 7.54 KB UMD_PROD
ReactDOM-dev.js 0.0% 0.0% 988.57 KB 989.04 KB 220.04 KB 220.14 KB FB_WWW_DEV
ReactDOM-prod.js 0.0% 0.0% 398.38 KB 398.53 KB 74.22 KB 74.24 KB FB_WWW_PROD
react-dom-server.browser.development.js +0.2% +0.2% 137.57 KB 137.79 KB 36.43 KB 36.5 KB NODE_DEV
ReactDOM-profiling.js 0.0% 0.0% 409.01 KB 409.15 KB 75.97 KB 75.98 KB FB_WWW_PROFILING
ReactDOMServer-dev.js +0.1% +0.2% 143.41 KB 143.62 KB 36.44 KB 36.51 KB FB_WWW_DEV
ReactDOMServer-prod.js 🔺+0.3% 🔺+0.1% 46.7 KB 46.84 KB 10.92 KB 10.94 KB FB_WWW_PROD
react-dom-test-utils.development.js 0.0% -0.0% 55.53 KB 55.53 KB 15.37 KB 15.37 KB UMD_DEV

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-dev.js +0.1% +0.1% 684.99 KB 685.51 KB 148.19 KB 148.27 KB RN_FB_DEV
ReactFabric-dev.js +0.1% +0.1% 665.71 KB 666.22 KB 143.51 KB 143.6 KB RN_FB_DEV
ReactNativeRenderer-dev.js +0.1% +0.1% 679.59 KB 680.12 KB 147.34 KB 147.43 KB RN_OSS_DEV
ReactFabric-prod.js 🔺+0.1% 0.0% 265.3 KB 265.44 KB 46.99 KB 47 KB RN_FB_PROD
ReactNativeRenderer-prod.js 🔺+0.1% 0.0% 271.62 KB 271.77 KB 48.29 KB 48.31 KB RN_OSS_PROD
ReactFabric-profiling.js +0.1% 0.0% 276.8 KB 276.94 KB 49.19 KB 49.2 KB RN_FB_PROFILING
ReactNativeRenderer-profiling.js +0.1% 0.0% 283.09 KB 283.24 KB 50.48 KB 50.5 KB RN_OSS_PROFILING
ReactNativeRenderer-prod.js 🔺+0.1% 0.0% 271.58 KB 271.72 KB 48.28 KB 48.29 KB RN_FB_PROD
ReactNativeRenderer-profiling.js +0.1% 0.0% 283.04 KB 283.19 KB 50.46 KB 50.48 KB RN_FB_PROFILING
ReactFabric-dev.js +0.1% +0.1% 660.31 KB 660.82 KB 142.66 KB 142.74 KB RN_OSS_DEV
ReactFabric-prod.js 🔺+0.1% 0.0% 265.33 KB 265.48 KB 47 KB 47.01 KB RN_OSS_PROD
ReactFabric-profiling.js +0.1% 0.0% 276.84 KB 276.98 KB 49.21 KB 49.22 KB RN_OSS_PROFILING

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactART-prod.js 🔺+0.1% 0.0% 244.77 KB 244.92 KB 43.42 KB 43.43 KB FB_WWW_PROD
react-art.development.js +0.1% +0.1% 689.06 KB 689.52 KB 146.01 KB 146.11 KB UMD_DEV
react-art.production.min.js 0.0% -0.0% 112.58 KB 112.59 KB 34.86 KB 34.86 KB UMD_PROD
react-art.development.js +0.1% +0.1% 590.5 KB 590.96 KB 128.2 KB 128.31 KB NODE_DEV
react-art.production.min.js 0.0% 0.0% 77.48 KB 77.48 KB 23.94 KB 23.94 KB NODE_PROD
ReactART-dev.js +0.1% +0.1% 627.92 KB 628.38 KB 133.27 KB 133.38 KB FB_WWW_DEV

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-test-renderer-shallow.production.min.js 0.0% -0.0% 12.74 KB 12.74 KB 3.97 KB 3.97 KB UMD_PROD
react-test-renderer.development.js +0.1% +0.1% 605.22 KB 605.69 KB 127.19 KB 127.3 KB UMD_DEV
react-test-renderer.production.min.js 0.0% -0.0% 76.75 KB 76.76 KB 24.02 KB 24.01 KB UMD_PROD
react-test-renderer.development.js +0.1% +0.1% 576.6 KB 577.07 KB 125.73 KB 125.85 KB NODE_DEV
react-test-renderer.production.min.js 0.0% 0.0% 76.57 KB 76.58 KB 23.71 KB 23.71 KB NODE_PROD
ReactTestRenderer-dev.js +0.1% +0.1% 599.64 KB 600.14 KB 128.53 KB 128.64 KB FB_WWW_DEV
ReactTestRenderer-dev.js +0.1% +0.1% 592.89 KB 593.38 KB 128.32 KB 128.43 KB RN_FB_DEV
react-test-renderer-shallow.development.js 0.0% -0.0% 39.17 KB 39.17 KB 9.58 KB 9.58 KB UMD_DEV

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler.development.js +0.1% +0.1% 650.25 KB 650.72 KB 138.58 KB 138.7 KB NODE_DEV
react-reconciler-reflection.development.js +1.3% +1.2% 16.71 KB 16.92 KB 4.98 KB 5.04 KB NODE_DEV
react-reconciler.production.min.js 0.0% -0.0% 87.58 KB 87.59 KB 26.84 KB 26.84 KB NODE_PROD

ReactDOM: size: 0.0%, gzip: -0.1%

Size changes (experimental)

Generated by 🚫 dangerJS against b1f4a5c

@sizebot
Copy link

sizebot commented Feb 27, 2020

Details of bundled changes.

Comparing: 9ea0f67...b1f4a5c

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.development.js +0.1% 0.0% 880.81 KB 881.29 KB 201.68 KB 201.77 KB NODE_DEV
ReactDOMForked-prod.js 0.0% 0.0% 404.56 KB 404.72 KB 74.76 KB 74.78 KB FB_WWW_PROD
react-dom-server.node.development.js +0.2% +0.2% 137.33 KB 137.55 KB 36.47 KB 36.55 KB NODE_DEV
react-dom.production.min.js 0.0% 0.0% 118.96 KB 118.97 KB 38.23 KB 38.23 KB NODE_PROD
ReactDOMForked-profiling.js 0.0% 0.0% 415.25 KB 415.4 KB 76.51 KB 76.52 KB FB_WWW_PROFILING
react-dom-server.browser.development.js +0.2% +0.2% 143.45 KB 143.66 KB 36.68 KB 36.76 KB UMD_DEV
react-dom-test-utils.production.min.js 0.0% -0.1% 10.34 KB 10.34 KB 4.06 KB 4.06 KB UMD_PROD
ReactDOMTesting-dev.js +0.1% +0.1% 981.39 KB 981.9 KB 219.5 KB 219.63 KB FB_WWW_DEV
react-dom-test-utils.development.js 0.0% -0.0% 51.13 KB 51.13 KB 14.89 KB 14.89 KB NODE_DEV
ReactDOMTesting-prod.js 0.0% 0.0% 412.34 KB 412.49 KB 77.37 KB 77.4 KB FB_WWW_PROD
react-dom-test-utils.production.min.js 0.0% -0.1% 10.19 KB 10.19 KB 3.98 KB 3.98 KB NODE_PROD
react-dom.development.js +0.1% 0.0% 925.38 KB 925.87 KB 204.09 KB 204.18 KB UMD_DEV
react-dom.production.min.js 0.0% -0.0% 118.84 KB 118.84 KB 39.02 KB 39.02 KB UMD_PROD
react-dom.profiling.min.js 0.0% -0.0% 122.75 KB 122.76 KB 40.16 KB 40.16 KB UMD_PROFILING
ReactDOMForked-dev.js +0.1% +0.1% 1000.18 KB 1000.7 KB 223 KB 223.12 KB FB_WWW_DEV
react-dom.profiling.min.js 0.0% 0.0% 123.01 KB 123.02 KB 39.44 KB 39.44 KB NODE_PROFILING
ReactDOM-dev.js +0.1% +0.1% 1014.1 KB 1014.61 KB 225.24 KB 225.36 KB FB_WWW_DEV
ReactDOM-prod.js 0.0% 0.0% 409.51 KB 409.66 KB 75.75 KB 75.76 KB FB_WWW_PROD
react-dom-server.browser.development.js +0.2% +0.2% 136.06 KB 136.28 KB 36.22 KB 36.3 KB NODE_DEV
ReactDOM-profiling.js 0.0% 0.0% 420.19 KB 420.34 KB 77.5 KB 77.52 KB FB_WWW_PROFILING
ReactDOMServer-dev.js +0.1% +0.2% 147.44 KB 147.65 KB 37.44 KB 37.51 KB FB_WWW_DEV
ReactDOMServer-prod.js 🔺+0.3% 🔺+0.2% 47.56 KB 47.7 KB 11.14 KB 11.16 KB FB_WWW_PROD
react-dom-test-utils.development.js 0.0% -0.0% 55.52 KB 55.52 KB 15.36 KB 15.36 KB UMD_DEV

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactART-prod.js 🔺+0.1% 🔺+0.1% 251.91 KB 252.06 KB 44.7 KB 44.72 KB FB_WWW_PROD
react-art.development.js +0.1% +0.1% 666.66 KB 667.12 KB 141.86 KB 141.96 KB UMD_DEV
react-art.production.min.js 0.0% 0.0% 109.61 KB 109.62 KB 33.96 KB 33.97 KB UMD_PROD
react-art.development.js +0.1% +0.1% 569.02 KB 569.48 KB 124.1 KB 124.22 KB NODE_DEV
react-art.production.min.js 0.0% -0.0% 74.57 KB 74.57 KB 23.06 KB 23.06 KB NODE_PROD
ReactART-dev.js +0.1% +0.1% 637.94 KB 638.42 KB 135.3 KB 135.43 KB FB_WWW_DEV

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-test-renderer-shallow.production.min.js 0.0% -0.0% 12.73 KB 12.73 KB 3.96 KB 3.96 KB UMD_PROD
react-test-renderer.development.js +0.1% +0.1% 605.19 KB 605.66 KB 127.17 KB 127.29 KB UMD_DEV
react-test-renderer.production.min.js 0.0% -0.0% 76.73 KB 76.74 KB 24 KB 24 KB UMD_PROD
react-test-renderer.development.js +0.1% +0.1% 576.58 KB 577.05 KB 125.72 KB 125.84 KB NODE_DEV
react-test-renderer.production.min.js 0.0% 0.0% 76.55 KB 76.55 KB 23.69 KB 23.69 KB NODE_PROD
ReactTestRenderer-dev.js +0.1% +0.1% 599.63 KB 600.13 KB 128.53 KB 128.63 KB FB_WWW_DEV
ReactTestRenderer-dev.js +0.1% +0.1% 592.87 KB 593.37 KB 128.31 KB 128.42 KB RN_FB_DEV

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-dev.js +0.1% +0.1% 679.58 KB 680.11 KB 147.34 KB 147.42 KB RN_OSS_DEV
ReactNativeRenderer-prod.js 🔺+0.1% 0.0% 271.61 KB 271.75 KB 48.29 KB 48.3 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js +0.1% 0.0% 283.08 KB 283.23 KB 50.47 KB 50.49 KB RN_OSS_PROFILING
ReactFabric-dev.js +0.1% +0.1% 660.29 KB 660.81 KB 142.65 KB 142.74 KB RN_OSS_DEV
ReactFabric-prod.js 🔺+0.1% 0.0% 265.32 KB 265.47 KB 47 KB 47 KB RN_OSS_PROD
ReactFabric-profiling.js +0.1% 0.0% 276.82 KB 276.97 KB 49.2 KB 49.21 KB RN_OSS_PROFILING

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler.development.js +0.1% +0.1% 626.41 KB 626.88 KB 134 KB 134.13 KB NODE_DEV
react-reconciler-reflection.development.js +1.3% +1.2% 16.69 KB 16.9 KB 4.98 KB 5.04 KB NODE_DEV
react-reconciler.production.min.js 0.0% -0.0% 84.23 KB 84.23 KB 25.91 KB 25.91 KB NODE_PROD

ReactDOM: size: 0.0%, gzip: -0.1%

Size changes (stable)

Generated by 🚫 dangerJS against b1f4a5c

@eps1lon eps1lon force-pushed the refactor/getComponentName/use-elementType branch 2 times, most recently from 31cb7e8 to 7e65fde Compare March 17, 2020 21:53
@eps1lon eps1lon force-pushed the refactor/getComponentName/use-elementType branch from 7e65fde to bda6a9b Compare April 14, 2020 20:08
@stale
Copy link

stale bot commented Jul 13, 2020

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Jul 13, 2020
@eps1lon eps1lon force-pushed the refactor/getComponentName/use-elementType branch from bda6a9b to b1f4a5c Compare July 13, 2020 22:14
@stale stale bot removed the Resolution: Stale Automatically closed due to inactivity label Jul 13, 2020
@stale
Copy link

stale bot commented Oct 12, 2020

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Oct 12, 2020
@eps1lon
Copy link
Collaborator Author

eps1lon commented Oct 12, 2020

Closing due to missing interest.

@eps1lon eps1lon closed this Oct 12, 2020
@eps1lon eps1lon deleted the refactor/getComponentName/use-elementType branch October 12, 2020 10:12
@eps1lon eps1lon restored the refactor/getComponentName/use-elementType branch October 12, 2020 10:12
@eps1lon eps1lon deleted the refactor/getComponentName/use-elementType branch June 30, 2021 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Resolution: Stale Automatically closed due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants