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

BREAKING CHANGE: Drop support for string refs #25454

Closed
wants to merge 1 commit into from

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Oct 9, 2022

Summary

Part of https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md#deprecate-string-refs-and-remove-production-mode-_owner-field

Removes support for string refers which allows moving _owner to a non-enumerable, dev-only property (like _self and _source).
_owner is still used by other dev-only warnings.

How did you test this change?

  • CI

@sizebot
Copy link

sizebot commented Oct 9, 2022

Comparing: 6fb8133...e0e03eb

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.min.js = 153.62 kB 153.27 kB = 48.83 kB 48.72 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 155.55 kB 155.19 kB = 49.47 kB 49.36 kB
facebook-www/ReactDOM-prod.classic.js = 530.40 kB 529.51 kB = 94.14 kB 93.95 kB
facebook-www/ReactDOM-prod.modern.js = 515.66 kB 514.77 kB = 91.95 kB 91.76 kB
facebook-www/ReactDOMForked-prod.classic.js = 530.40 kB 529.51 kB = 94.14 kB 93.95 kB
oss-experimental/jest-react/cjs/jest-react.production.min.js +6.77% 2.42 kB 2.59 kB +4.69% 1.17 kB 1.23 kB
oss-stable-semver/jest-react/cjs/jest-react.production.min.js +6.77% 2.42 kB 2.59 kB +4.69% 1.17 kB 1.23 kB
oss-stable/jest-react/cjs/jest-react.production.min.js +6.77% 2.42 kB 2.59 kB +4.69% 1.17 kB 1.23 kB
oss-experimental/jest-react/cjs/jest-react.development.js +2.86% 10.65 kB 10.95 kB +1.99% 3.77 kB 3.84 kB
oss-stable-semver/jest-react/cjs/jest-react.development.js +2.86% 10.65 kB 10.95 kB +1.99% 3.77 kB 3.84 kB
oss-stable/jest-react/cjs/jest-react.development.js +2.86% 10.65 kB 10.95 kB +1.99% 3.77 kB 3.84 kB
facebook-react-native/react/cjs/JSXRuntime-prod.js = 1.43 kB 1.27 kB = 0.68 kB 0.59 kB
facebook-react-native/react/cjs/JSXRuntime-profiling.js = 1.43 kB 1.27 kB = 0.68 kB 0.59 kB
oss-experimental/react/cjs/react-jsx-runtime.production.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-stable-semver/react/cjs/react-jsx-runtime.production.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-stable/react/cjs/react-jsx-runtime.production.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-experimental/react/cjs/react-jsx-runtime.profiling.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-stable-semver/react/cjs/react-jsx-runtime.profiling.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-stable/react/cjs/react-jsx-runtime.profiling.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/jest-react/cjs/jest-react.production.min.js +6.77% 2.42 kB 2.59 kB +4.69% 1.17 kB 1.23 kB
oss-stable-semver/jest-react/cjs/jest-react.production.min.js +6.77% 2.42 kB 2.59 kB +4.69% 1.17 kB 1.23 kB
oss-stable/jest-react/cjs/jest-react.production.min.js +6.77% 2.42 kB 2.59 kB +4.69% 1.17 kB 1.23 kB
oss-experimental/jest-react/cjs/jest-react.development.js +2.86% 10.65 kB 10.95 kB +1.99% 3.77 kB 3.84 kB
oss-stable-semver/jest-react/cjs/jest-react.development.js +2.86% 10.65 kB 10.95 kB +1.99% 3.77 kB 3.84 kB
oss-stable/jest-react/cjs/jest-react.development.js +2.86% 10.65 kB 10.95 kB +1.99% 3.77 kB 3.84 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer.development.js +1.70% 34.72 kB 35.31 kB +0.61% 7.83 kB 7.88 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer.development.js +1.70% 34.72 kB 35.31 kB +0.61% 7.83 kB 7.88 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer.development.js +1.70% 34.72 kB 35.31 kB +0.61% 7.83 kB 7.88 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-persistent.development.js +1.70% 34.85 kB 35.44 kB +0.60% 7.85 kB 7.90 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-persistent.development.js +1.70% 34.85 kB 35.44 kB +0.60% 7.85 kB 7.90 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-persistent.development.js +1.70% 34.85 kB 35.44 kB +0.60% 7.85 kB 7.90 kB
facebook-www/ReactFlightDOMRelayClient-dev.classic.js +0.72% 17.55 kB 17.68 kB = 4.55 kB 4.55 kB
facebook-www/ReactFlightDOMRelayClient-dev.modern.js +0.72% 17.55 kB 17.68 kB = 4.55 kB 4.55 kB
facebook-relay/flight/ReactFlightNativeRelayClient-dev.js +0.72% 17.61 kB 17.74 kB +0.02% 4.57 kB 4.57 kB
oss-experimental/react-client/cjs/react-client-flight.development.js +0.62% 20.36 kB 20.49 kB +0.06% 5.41 kB 5.41 kB
oss-stable-semver/react-client/cjs/react-client-flight.development.js +0.62% 20.36 kB 20.49 kB +0.06% 5.41 kB 5.41 kB
oss-stable/react-client/cjs/react-client-flight.development.js +0.62% 20.36 kB 20.49 kB +0.06% 5.41 kB 5.41 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js +0.52% 24.55 kB 24.68 kB +0.03% 6.39 kB 6.39 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js +0.52% 24.55 kB 24.68 kB +0.03% 6.39 kB 6.39 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.development.js +0.52% 24.55 kB 24.68 kB +0.03% 6.39 kB 6.39 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.development.js +0.51% 26.22 kB 26.35 kB = 6.52 kB 6.52 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.development.js +0.51% 26.22 kB 26.35 kB = 6.52 kB 6.52 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.development.js +0.51% 26.22 kB 26.35 kB = 6.52 kB 6.52 kB
facebook-react-native/react/cjs/JSXDEVRuntime-dev.js +0.34% 36.93 kB 37.06 kB +0.06% 10.60 kB 10.61 kB
facebook-react-native/react/cjs/JSXRuntime-dev.js +0.34% 37.53 kB 37.66 kB +0.06% 10.78 kB 10.79 kB
oss-experimental/react/cjs/react-jsx-dev-runtime.development.js +0.30% 42.69 kB 42.82 kB +0.06% 12.49 kB 12.49 kB
oss-stable-semver/react/cjs/react-jsx-dev-runtime.development.js +0.30% 42.71 kB 42.84 kB +0.06% 12.49 kB 12.50 kB
oss-stable/react/cjs/react-jsx-dev-runtime.development.js +0.30% 42.71 kB 42.84 kB +0.06% 12.49 kB 12.50 kB
oss-experimental/react/cjs/react-jsx-runtime.development.js +0.29% 43.29 kB 43.42 kB +0.06% 12.67 kB 12.67 kB
oss-stable-semver/react/cjs/react-jsx-runtime.development.js +0.29% 43.31 kB 43.44 kB +0.06% 12.67 kB 12.68 kB
oss-stable/react/cjs/react-jsx-runtime.development.js +0.29% 43.31 kB 43.44 kB +0.06% 12.67 kB 12.68 kB
facebook-www/JSXDEVRuntime-dev.modern.js +0.27% 46.52 kB 46.64 kB +0.05% 13.16 kB 13.16 kB
facebook-www/JSXDEVRuntime-dev.classic.js +0.27% 46.52 kB 46.65 kB +0.04% 13.16 kB 13.16 kB
oss-experimental/react-dom/cjs/react-dom.profiling.min.js = 165.03 kB 164.67 kB = 51.95 kB 51.84 kB
oss-experimental/react-dom/umd/react-dom.profiling.min.js = 164.35 kB 164.00 kB = 52.46 kB 52.33 kB
oss-experimental/react-client/cjs/react-client-flight.production.min.js = 5.55 kB 5.54 kB = 2.22 kB 2.22 kB
oss-stable-semver/react-client/cjs/react-client-flight.production.min.js = 5.55 kB 5.54 kB = 2.22 kB 2.22 kB
oss-stable/react-client/cjs/react-client-flight.production.min.js = 5.55 kB 5.54 kB = 2.22 kB 2.22 kB
oss-stable/react-dom/cjs/react-dom.profiling.min.js = 163.10 kB 162.75 kB = 51.35 kB 51.23 kB
oss-stable-semver/react-dom/cjs/react-dom.profiling.min.js = 163.08 kB 162.73 kB = 51.35 kB 51.23 kB
oss-stable/react-dom/umd/react-dom.profiling.min.js = 162.46 kB 162.11 kB = 51.82 kB 51.72 kB
oss-stable-semver/react-dom/umd/react-dom.profiling.min.js = 162.44 kB 162.09 kB = 51.82 kB 51.73 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.min.js = 159.95 kB 159.59 kB = 51.28 kB 51.16 kB
oss-experimental/react-dom/umd/react-dom.production.min.js = 155.55 kB 155.20 kB = 50.17 kB 50.06 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 155.55 kB 155.19 kB = 49.47 kB 49.36 kB
oss-stable/react-dom/umd/react-dom.production.min.js = 153.65 kB 153.30 kB = 49.55 kB 49.43 kB
oss-stable-semver/react-dom/umd/react-dom.production.min.js = 153.63 kB 153.27 kB = 49.55 kB 49.43 kB
oss-stable/react-dom/cjs/react-dom.production.min.js = 153.62 kB 153.27 kB = 48.83 kB 48.72 kB
oss-stable-semver/react-dom/cjs/react-dom.production.min.js = 153.60 kB 153.25 kB = 48.83 kB 48.72 kB
facebook-www/ReactART-prod.classic.js = 333.46 kB 332.57 kB = 56.56 kB 56.37 kB
facebook-relay/flight/ReactFlightNativeRelayClient-prod.js = 10.36 kB 10.33 kB = 2.67 kB 2.66 kB
facebook-www/ReactFlightDOMRelayClient-prod.classic.js = 10.35 kB 10.32 kB = 2.66 kB 2.66 kB
facebook-www/ReactFlightDOMRelayClient-prod.modern.js = 10.35 kB 10.32 kB = 2.66 kB 2.66 kB
oss-experimental/react-art/umd/react-art.production.min.js = 128.85 kB 128.50 kB = 39.89 kB 39.74 kB
facebook-www/ReactART-prod.modern.js = 322.67 kB 321.78 kB = 54.70 kB 54.51 kB
oss-stable/react-art/umd/react-art.production.min.js = 127.43 kB 127.08 kB = 39.40 kB 39.28 kB
oss-stable-semver/react-art/umd/react-art.production.min.js = 127.41 kB 127.06 kB = 39.40 kB 39.28 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-persistent.production.min.js = 12.60 kB 12.56 kB = 3.76 kB 3.75 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-persistent.production.min.js = 12.60 kB 12.56 kB = 3.76 kB 3.75 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-persistent.production.min.js = 12.60 kB 12.56 kB = 3.76 kB 3.75 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer.production.min.js = 12.53 kB 12.50 kB = 3.74 kB 3.73 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer.production.min.js = 12.53 kB 12.50 kB = 3.74 kB 3.73 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer.production.min.js = 12.53 kB 12.50 kB = 3.74 kB 3.73 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.min.js = 115.70 kB 115.35 kB = 34.76 kB 34.64 kB
oss-stable/react-reconciler/cjs/react-reconciler.profiling.min.js = 114.28 kB 113.93 kB = 34.35 kB 34.23 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.profiling.min.js = 114.26 kB 113.91 kB = 34.33 kB 34.21 kB
oss-experimental/react-reconciler/cjs/react-reconciler.production.min.js = 106.84 kB 106.49 kB = 32.60 kB 32.49 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js = 1,195.97 kB 1,191.99 kB = 265.09 kB 264.10 kB
oss-experimental/react-dom/umd/react-dom.development.js = 1,261.63 kB 1,257.42 kB = 269.44 kB 268.45 kB
facebook-www/ReactDOM-dev.classic.js = 1,347.59 kB 1,343.09 kB = 292.17 kB 291.16 kB
facebook-www/ReactDOMForked-dev.classic.js = 1,347.59 kB 1,343.09 kB = 292.17 kB 291.15 kB
oss-stable/react-reconciler/cjs/react-reconciler.production.min.js = 105.42 kB 105.07 kB = 32.19 kB 32.07 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.production.min.js = 105.40 kB 105.05 kB = 32.16 kB 32.05 kB
oss-stable/react-dom/umd/react-dom.development.js = 1,251.03 kB 1,246.82 kB = 267.50 kB 266.51 kB
oss-stable-semver/react-dom/umd/react-dom.development.js = 1,251.01 kB 1,246.80 kB = 267.47 kB 266.49 kB
oss-experimental/react-dom/cjs/react-dom.development.js = 1,203.07 kB 1,199.00 kB = 266.61 kB 265.63 kB
facebook-www/ReactDOM-dev.modern.js = 1,322.75 kB 1,318.25 kB = 287.59 kB 286.59 kB
facebook-www/ReactDOMForked-dev.modern.js = 1,322.74 kB 1,318.25 kB = 287.59 kB 286.58 kB
oss-stable/react-dom/cjs/react-dom.development.js = 1,193.02 kB 1,188.95 kB = 264.61 kB 263.63 kB
oss-stable-semver/react-dom/cjs/react-dom.development.js = 1,192.99 kB 1,188.93 kB = 264.58 kB 263.60 kB
facebook-www/ReactDOMTesting-dev.classic.js = 1,226.51 kB 1,222.01 kB = 270.58 kB 269.53 kB
facebook-www/ReactDOMTesting-dev.modern.js = 1,196.63 kB 1,192.14 kB = 264.81 kB 263.80 kB
oss-experimental/react-art/cjs/react-art.production.min.js = 93.02 kB 92.66 kB = 28.61 kB 28.50 kB
oss-stable/react-art/cjs/react-art.production.min.js = 91.60 kB 91.25 kB = 28.22 kB 28.11 kB
oss-stable-semver/react-art/cjs/react-art.production.min.js = 91.58 kB 91.22 kB = 28.22 kB 28.11 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js = 357.84 kB 356.22 kB = 62.85 kB 62.38 kB
react-native/implementations/ReactFabric-profiling.fb.js = 351.63 kB 350.01 kB = 61.78 kB 61.31 kB
react-native/implementations/ReactNativeRenderer-profiling.js = 339.52 kB 337.90 kB = 59.71 kB 59.24 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js = 850.93 kB 846.86 kB = 180.37 kB 179.37 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js = 778.36 kB 774.62 kB = 162.35 kB 161.41 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js = 778.25 kB 774.51 kB = 162.31 kB 161.37 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.development.js = 778.23 kB 774.49 kB = 162.28 kB 161.35 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js = 843.12 kB 839.06 kB = 178.94 kB 177.94 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.development.js = 843.10 kB 839.04 kB = 178.92 kB 177.92 kB
react-native/implementations/ReactFabric-profiling.js = 333.29 kB 331.67 kB = 58.74 kB 58.26 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js = 743.00 kB 739.38 kB = 160.63 kB 159.75 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js = 742.89 kB 739.28 kB = 160.60 kB 159.72 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js = 742.87 kB 739.25 kB = 160.58 kB 159.69 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js = 330.98 kB 329.36 kB = 58.65 kB 58.18 kB
react-native/implementations/ReactFabric-prod.fb.js = 324.83 kB 323.21 kB = 57.67 kB 57.20 kB
react-native/implementations/ReactNativeRenderer-prod.js = 320.24 kB 318.62 kB = 56.49 kB 56.02 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js = 881.96 kB 877.46 kB = 190.76 kB 189.81 kB
react-native/implementations/ReactFabric-dev.fb.js = 872.44 kB 867.94 kB = 188.28 kB 187.31 kB
react-native/implementations/ReactFabric-prod.js = 314.09 kB 312.47 kB = 55.53 kB 55.07 kB
facebook-www/ReactTestRenderer-dev.classic.js = 773.49 kB 769.40 kB = 165.41 kB 164.44 kB
facebook-www/ReactTestRenderer-dev.modern.js = 773.49 kB 769.40 kB = 165.41 kB 164.44 kB
react-native/implementations/ReactNativeRenderer-dev.js = 845.24 kB 840.75 kB = 183.63 kB 182.66 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-profiling.js = 302.38 kB 300.76 kB = 52.93 kB 52.46 kB
react-native/implementations/ReactFabric-dev.js = 835.71 kB 831.21 kB = 181.18 kB 180.19 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js = 757.09 kB 753.00 kB = 162.17 kB 161.26 kB
oss-experimental/react/umd/react.production.min.js = 12.83 kB 12.76 kB = 4.95 kB 4.92 kB
oss-experimental/react/umd/react.profiling.min.js = 12.83 kB 12.76 kB = 4.95 kB 4.92 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-prod.js = 286.77 kB 285.15 kB = 50.58 kB 50.12 kB
oss-stable/react/umd/react.production.min.js = 12.14 kB 12.07 kB = 4.74 kB 4.69 kB
oss-stable/react/umd/react.profiling.min.js = 12.14 kB 12.07 kB = 4.74 kB 4.69 kB
oss-stable-semver/react/umd/react.production.min.js = 12.12 kB 12.05 kB = 4.72 kB 4.67 kB
oss-stable-semver/react/umd/react.profiling.min.js = 12.12 kB 12.05 kB = 4.72 kB 4.67 kB
facebook-www/React-dev.classic.js = 128.82 kB 127.99 kB = 34.08 kB 33.72 kB
oss-experimental/react/umd/react.development.js = 124.86 kB 124.04 kB = 32.21 kB 31.90 kB
facebook-www/React-dev.modern.js = 127.73 kB 126.90 kB = 33.84 kB 33.47 kB
oss-stable/react/umd/react.development.js = 122.88 kB 122.07 kB = 31.69 kB 31.38 kB
oss-stable-semver/react/umd/react.development.js = 122.86 kB 122.04 kB = 31.67 kB 31.35 kB
facebook-react-native/react/cjs/React-dev.js = 118.01 kB 117.18 kB = 31.17 kB 30.90 kB
oss-experimental/react-art/umd/react-art.development.js = 878.83 kB 871.98 kB = 184.31 kB 182.33 kB
oss-experimental/react/cjs/react.production.min.js = 9.07 kB 8.99 kB = 3.38 kB 3.36 kB
oss-stable/react-art/umd/react-art.development.js = 870.58 kB 863.73 kB = 182.91 kB 180.93 kB
oss-stable-semver/react-art/umd/react-art.development.js = 870.56 kB 863.71 kB = 182.89 kB 180.91 kB
oss-experimental/react/cjs/react.development.js = 100.87 kB 100.07 kB = 27.30 kB 27.00 kB
facebook-www/ReactART-dev.classic.js = 874.61 kB 867.56 kB = 184.41 kB 182.43 kB
oss-stable/react/cjs/react.development.js = 98.97 kB 98.18 kB = 26.78 kB 26.50 kB
oss-stable-semver/react/cjs/react.development.js = 98.95 kB 98.15 kB = 26.76 kB 26.47 kB
facebook-www/ReactART-dev.modern.js = 864.30 kB 857.25 kB = 182.34 kB 180.34 kB
oss-stable/react/cjs/react.production.min.js = 8.33 kB 8.26 kB = 3.16 kB 3.13 kB
oss-experimental/react/cjs/react.shared-subset.production.min.js = 8.31 kB 8.24 kB = 3.40 kB 3.37 kB
oss-stable-semver/react/cjs/react.production.min.js = 8.30 kB 8.23 kB = 3.14 kB 3.11 kB
oss-experimental/react-art/cjs/react-art.development.js = 771.27 kB 764.67 kB = 166.13 kB 164.18 kB
oss-stable/react-art/cjs/react-art.development.js = 763.47 kB 756.87 kB = 164.71 kB 162.75 kB
oss-stable-semver/react-art/cjs/react-art.development.js = 763.44 kB 756.84 kB = 164.70 kB 162.73 kB
oss-stable/react/cjs/react.shared-subset.production.min.js = 7.90 kB 7.83 kB = 3.28 kB 3.24 kB
oss-stable-semver/react/cjs/react.shared-subset.production.min.js = 7.88 kB 7.81 kB = 3.26 kB 3.22 kB
oss-experimental/react/cjs/react.shared-subset.development.js = 85.04 kB 84.24 kB = 23.65 kB 23.39 kB
oss-stable/react/cjs/react.shared-subset.development.js = 83.64 kB 82.84 kB = 23.23 kB 22.96 kB
oss-stable-semver/react/cjs/react.shared-subset.development.js = 83.62 kB 82.82 kB = 23.21 kB 22.93 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.production.min.js = 99.57 kB 98.56 kB = 30.95 kB 30.65 kB
oss-stable/react-test-renderer/umd/react-test-renderer.production.min.js = 99.51 kB 98.50 kB = 30.93 kB 30.62 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.production.min.js = 99.49 kB 98.48 kB = 30.93 kB 30.62 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.min.js = 99.32 kB 98.31 kB = 30.53 kB 30.21 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.production.min.js = 99.26 kB 98.25 kB = 30.50 kB 30.18 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.production.min.js = 99.24 kB 98.23 kB = 30.50 kB 30.18 kB
facebook-www/React-profiling.classic.js = 21.96 kB 21.65 kB = 5.48 kB 5.42 kB
facebook-www/React-profiling.modern.js = 21.67 kB 21.37 kB = 5.40 kB 5.34 kB
facebook-www/React-prod.classic.js = 21.36 kB 21.05 kB = 5.35 kB 5.29 kB
facebook-react-native/react/cjs/React-profiling.js = 21.35 kB 21.04 kB = 5.30 kB 5.24 kB
facebook-www/React-prod.modern.js = 21.07 kB 20.76 kB = 5.27 kB 5.21 kB
facebook-react-native/react/cjs/React-prod.js = 20.74 kB 20.43 kB = 5.18 kB 5.11 kB
facebook-react-native/react/cjs/JSXRuntime-prod.js = 1.43 kB 1.27 kB = 0.68 kB 0.59 kB
facebook-react-native/react/cjs/JSXRuntime-profiling.js = 1.43 kB 1.27 kB = 0.68 kB 0.59 kB
oss-experimental/react/cjs/react-jsx-runtime.production.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-stable-semver/react/cjs/react-jsx-runtime.production.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-stable/react/cjs/react-jsx-runtime.production.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-experimental/react/cjs/react-jsx-runtime.profiling.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-stable-semver/react/cjs/react-jsx-runtime.profiling.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB
oss-stable/react/cjs/react-jsx-runtime.profiling.min.js = 0.86 kB 0.75 kB = 0.54 kB 0.46 kB

Generated by 🚫 dangerJS against e0e03eb

@@ -134,6 +134,7 @@ function validateExplicitKey(element, parentType) {
// assigning it a key.
let childOwner = '';
if (
__DEV__ &&
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Last place where element._owner is read I believe. Responsible for enhancing "should have unique key prop":

function InnerComponent({ childSet }) {
  return <div>{childSet}</div>;
}

class App extends Component {
  render() {
    return <InnerComponent childSet={[<div />, <div />]} />;
  }
}
Warning: Each child in a list should have a unique "key" prop.

Check the render method of `InnerComponent`. It was passed a child from App. See https://reactjs.org/link/warning-keys for more information.
    at div
    at InnerComponent (https://cggv72.csb.app/src/index.js:14:3)
    at App (https://cggv72.csb.app/src/index.js:23:1)

-- https://codesandbox.io/s/warnings-with-owner-usage-cggv72

Copy link
Collaborator

Choose a reason for hiding this comment

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

this whole file is / should be dev-only

@eps1lon eps1lon force-pushed the forwardRef/remove-string-refs branch from 8f49e7c to e0e03eb Compare November 17, 2022 10:24
@eps1lon
Copy link
Collaborator Author

eps1lon commented Feb 28, 2024

Replaced by #28322

@eps1lon eps1lon closed this Feb 28, 2024
@eps1lon eps1lon deleted the forwardRef/remove-string-refs branch February 28, 2024 17:50
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