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

Remove runtime dependency on prop-types #18127

Merged
merged 2 commits into from
Feb 28, 2020
Merged

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Feb 25, 2020

This is to unblock the ESM work. There is no good story for using a CJS dependency so let's just inline this back. I lost the last argument because console.error now "sees" the stack again.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 25, 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 d241149:

Sandbox Source
pedantic-flower-7wdsn Configuration

@sizebot
Copy link

sizebot commented Feb 25, 2020

Details of bundled changes.

Comparing: 739f20b...d241149

react

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react.development.js -1.6% -1.8% 102.69 KB 101.03 KB 25.46 KB 25 KB UMD_DEV
react.production.min.js 0.0% 0.0% 12.19 KB 12.19 KB 4.79 KB 4.79 KB UMD_PROD
react.profiling.min.js 0.0% 0.0% 15.72 KB 15.72 KB 5.91 KB 5.91 KB UMD_PROFILING
react.development.js +3.5% +4.1% 59.24 KB 61.32 KB 16.08 KB 16.73 KB NODE_DEV
react.production.min.js 0.0% 0.0% 6.54 KB 6.54 KB 2.66 KB 2.66 KB NODE_PROD
React-dev.js +3.4% +4.0% 71.92 KB 74.37 KB 18.15 KB 18.88 KB FB_WWW_DEV
React-prod.js 0.0% 0.0% 17.71 KB 17.71 KB 4.57 KB 4.57 KB FB_WWW_PROD
React-profiling.js 0.0% 0.0% 17.71 KB 17.71 KB 4.57 KB 4.57 KB FB_WWW_PROFILING

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactDOM-profiling.js 0.0% 0.0% 405.88 KB 405.88 KB 73.87 KB 73.87 KB FB_WWW_PROFILING
react-dom-server.browser.development.js -1.3% -0.9% 136.3 KB 134.53 KB 34.88 KB 34.57 KB UMD_DEV
react-dom-unstable-fizz.node.production.min.js 0.0% 🔺+0.3% 1.15 KB 1.15 KB 653 B 655 B NODE_PROD
react-dom-server.browser.production.min.js 0.0% 0.0% 19.99 KB 19.99 KB 7.39 KB 7.39 KB UMD_PROD
react-dom-unstable-native-dependencies.development.js 0.0% 0.0% 55.86 KB 55.86 KB 14.46 KB 14.46 KB NODE_DEV
react-dom.development.js -0.3% -0.3% 884.09 KB 881.76 KB 194.99 KB 194.34 KB UMD_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% 0.0% 9.99 KB 9.99 KB 3.37 KB 3.37 KB NODE_PROD
react-dom.production.min.js 0.0% 0.0% 115.85 KB 115.85 KB 37.07 KB 37.07 KB UMD_PROD
react-dom.profiling.min.js 0.0% 0.0% 119.38 KB 119.38 KB 38.29 KB 38.29 KB UMD_PROFILING
react-dom.development.js +0.2% +0.3% 837.76 KB 839.2 KB 191.42 KB 191.96 KB NODE_DEV
react-dom-server.node.development.js +1.6% +2.0% 126.87 KB 128.85 KB 33.75 KB 34.41 KB NODE_DEV
react-dom.production.min.js 0.0% 0.0% 115.93 KB 115.93 KB 36.44 KB 36.44 KB NODE_PROD
react-dom-server.node.production.min.js 0.0% 0.0% 20.31 KB 20.31 KB 7.51 KB 7.51 KB NODE_PROD
react-dom.profiling.min.js 0.0% 0.0% 119.61 KB 119.61 KB 37.5 KB 37.5 KB NODE_PROFILING
ReactDOM-dev.js +0.2% +0.3% 934.9 KB 936.53 KB 208.04 KB 208.59 KB FB_WWW_DEV
react-dom-unstable-fizz.node.development.js 0.0% +0.1% 3.68 KB 3.68 KB 1.33 KB 1.33 KB NODE_DEV
ReactDOMTesting-dev.js +0.2% +0.3% 894.24 KB 895.88 KB 199.59 KB 200.12 KB FB_WWW_DEV
ReactDOMTesting-prod.js 0.0% 0.0% 381.65 KB 381.65 KB 69.44 KB 69.44 KB FB_WWW_PROD
react-dom-server.browser.development.js +1.6% +2.0% 125.65 KB 127.63 KB 33.49 KB 34.15 KB NODE_DEV
react-dom-test-utils.development.js 0.0% 0.0% 53.77 KB 53.77 KB 14 KB 14 KB UMD_DEV
ReactDOMTesting-profiling.js 0.0% 0.0% 381.65 KB 381.65 KB 69.44 KB 69.44 KB FB_WWW_PROFILING
react-dom-server.browser.production.min.js 0.0% 0.0% 19.9 KB 19.9 KB 7.36 KB 7.36 KB NODE_PROD
react-dom-unstable-fizz.browser.development.js 0.0% +0.1% 3.34 KB 3.34 KB 1.26 KB 1.26 KB UMD_DEV
react-dom-test-utils.production.min.js 0.0% -0.0% 10.94 KB 10.94 KB 4.16 KB 4.16 KB UMD_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.3% 1.17 KB 1.17 KB 690 B 692 B UMD_PROD
ReactDOMServer-dev.js +1.7% +2.1% 135.1 KB 137.46 KB 34.31 KB 35.02 KB FB_WWW_DEV
react-dom-test-utils.development.js 0.0% 0.0% 49.55 KB 49.55 KB 13.51 KB 13.51 KB NODE_DEV
ReactDOMServer-prod.js 0.0% 0.0% 47.39 KB 47.39 KB 11.03 KB 11.03 KB FB_WWW_PROD
react-dom-unstable-fizz.browser.development.js 0.0% +0.1% 2.94 KB 2.94 KB 1.17 KB 1.17 KB NODE_DEV
react-dom-test-utils.production.min.js 0.0% 0.0% 10.79 KB 10.79 KB 4.09 KB 4.09 KB NODE_PROD
react-dom-unstable-native-dependencies.development.js 0.0% 0.0% 58.9 KB 58.9 KB 14.7 KB 14.7 KB UMD_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.2% 1013 B 1013 B 602 B 603 B NODE_PROD
react-dom-unstable-native-dependencies.production.min.js 0.0% 🔺+0.1% 10.26 KB 10.26 KB 3.49 KB 3.49 KB UMD_PROD

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactFabric-dev.js +0.3% +0.4% 611.56 KB 613.19 KB 131.98 KB 132.54 KB RN_OSS_DEV
ReactNativeRenderer-dev.js +0.3% +0.4% 629.54 KB 631.17 KB 136.25 KB 136.83 KB RN_OSS_DEV
ReactNativeRenderer-prod.js 0.0% 0.0% 260.61 KB 260.61 KB 45.21 KB 45.22 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js 0.0% 0.0% 271.76 KB 271.76 KB 47.34 KB 47.35 KB RN_OSS_PROFILING
ReactFabric-prod.js 0.0% 0.0% 252.51 KB 252.51 KB 43.72 KB 43.74 KB RN_OSS_PROD
ReactFabric-profiling.js 0.0% 0.0% 263.67 KB 263.67 KB 45.86 KB 45.87 KB RN_OSS_PROFILING

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactART-dev.js +0.3% +0.5% 564.68 KB 566.32 KB 118.16 KB 118.74 KB FB_WWW_DEV
ReactART-prod.js 0.0% 0.0% 234.44 KB 234.44 KB 39.76 KB 39.76 KB FB_WWW_PROD
react-art.development.js -0.4% -0.4% 615.91 KB 613.58 KB 130.1 KB 129.53 KB UMD_DEV
react-art.production.min.js 0.0% 0.0% 104.06 KB 104.06 KB 31.49 KB 31.5 KB UMD_PROD
react-art.development.js +0.3% +0.5% 517.19 KB 518.64 KB 111.38 KB 111.92 KB NODE_DEV
react-art.production.min.js 0.0% 0.0% 69.05 KB 69.05 KB 20.71 KB 20.72 KB NODE_PROD

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactTestRenderer-dev.js +0.3% +0.5% 550.4 KB 552.03 KB 115.93 KB 116.52 KB FB_WWW_DEV
react-test-renderer-shallow.development.js 0.0% 0.0% 39.53 KB 39.53 KB 9.49 KB 9.49 KB UMD_DEV
react-test-renderer-shallow.production.min.js 0.0% 0.0% 12.88 KB 12.88 KB 3.93 KB 3.93 KB UMD_PROD
react-test-renderer.development.js -0.4% -0.4% 553.19 KB 550.86 KB 115.17 KB 114.72 KB UMD_DEV
react-test-renderer.production.min.js 0.0% 0.0% 71.1 KB 71.1 KB 21.6 KB 21.61 KB UMD_PROD
react-test-renderer.development.js +0.3% +0.5% 523.55 KB 524.99 KB 112.83 KB 113.37 KB NODE_DEV
react-test-renderer.production.min.js 0.0% 🔺+0.1% 70.92 KB 70.92 KB 21.27 KB 21.28 KB NODE_PROD

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler.development.js +0.3% +0.4% 553.49 KB 554.93 KB 116.95 KB 117.45 KB NODE_DEV
react-reconciler-reflection.development.js 0.0% -0.0% 16 KB 16 KB 4.89 KB 4.89 KB NODE_DEV
react-reconciler.production.min.js 0.0% 0.0% 73.47 KB 73.47 KB 21.72 KB 21.73 KB NODE_PROD
react-reconciler-reflection.production.min.js 0.0% 🔺+0.1% 2.8 KB 2.8 KB 1.2 KB 1.2 KB NODE_PROD
react-reconciler-persistent.development.js +0.3% +0.4% 552.17 KB 553.61 KB 116.81 KB 117.32 KB NODE_DEV
react-reconciler-persistent.production.min.js 0.0% 0.0% 73.48 KB 73.49 KB 21.73 KB 21.73 KB NODE_PROD

ReactDOM: size: 0.0%, gzip: 0.0%

React: size: 0.0%, gzip: 0.0%

Size changes (stable)

Generated by 🚫 dangerJS against d241149

@sizebot
Copy link

sizebot commented Feb 25, 2020

Details of bundled changes.

Comparing: 739f20b...d241149

react

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react.development.js -1.6% -1.8% 105.12 KB 103.46 KB 25.88 KB 25.4 KB UMD_DEV
react.production.min.js 0.0% 0.0% 12.6 KB 12.6 KB 4.91 KB 4.91 KB UMD_PROD
react.profiling.min.js 0.0% 0.0% 16.14 KB 16.14 KB 6.01 KB 6.01 KB UMD_PROFILING
react.development.js +3.4% +4.3% 61.57 KB 63.64 KB 16.46 KB 17.17 KB NODE_DEV
react.production.min.js 0.0% 0.0% 7.06 KB 7.06 KB 2.81 KB 2.81 KB NODE_PROD
React-dev.js +3.4% +4.1% 71.25 KB 73.7 KB 17.97 KB 18.7 KB FB_WWW_DEV
React-prod.js 0.0% 🔺+0.1% 17.65 KB 17.65 KB 4.56 KB 4.56 KB FB_WWW_PROD
React-profiling.js 0.0% +0.1% 17.65 KB 17.65 KB 4.56 KB 4.56 KB FB_WWW_PROFILING

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-art.development.js -0.4% -0.4% 635.08 KB 632.75 KB 133.5 KB 132.95 KB UMD_DEV
react-art.production.min.js 0.0% 🔺+0.1% 106.49 KB 106.49 KB 32.14 KB 32.17 KB UMD_PROD
react-art.development.js +0.3% +0.5% 535.62 KB 537.06 KB 114.83 KB 115.36 KB NODE_DEV
react-art.production.min.js 0.0% 0.0% 71.42 KB 71.42 KB 21.36 KB 21.37 KB NODE_PROD
ReactART-dev.js +0.4% +0.7% 538.18 KB 540.35 KB 112.7 KB 113.44 KB FB_WWW_DEV
ReactART-prod.js 0.0% 0.0% 227.26 KB 227.26 KB 38.49 KB 38.5 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% 123.7 KB 123.7 KB 38.56 KB 38.57 KB NODE_PROFILING
react-dom-unstable-native-dependencies.development.js 0.0% 0.0% 58.91 KB 58.91 KB 14.7 KB 14.7 KB UMD_DEV
ReactDOM-dev.js +0.2% +0.3% 892.91 KB 895.08 KB 199.43 KB 200.11 KB FB_WWW_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% 🔺+0.1% 10.27 KB 10.27 KB 3.49 KB 3.5 KB UMD_PROD
ReactDOMServer-dev.js +1.8% +2.2% 134.18 KB 136.61 KB 34.14 KB 34.89 KB FB_WWW_DEV
ReactDOMTesting-dev.js +0.2% +0.3% 868.12 KB 870.29 KB 194.32 KB 194.99 KB FB_WWW_DEV
react-dom-test-utils.development.js 0.0% 0.0% 49.56 KB 49.56 KB 13.52 KB 13.52 KB NODE_DEV
react-dom-server.node.development.js +1.5% +1.9% 128.38 KB 130.36 KB 33.97 KB 34.63 KB NODE_DEV
react-dom-test-utils.production.min.js 0.0% 0.0% 10.81 KB 10.81 KB 4.1 KB 4.1 KB NODE_PROD
react-dom-server.node.production.min.js 0.0% 0.0% 20.77 KB 20.77 KB 7.59 KB 7.59 KB NODE_PROD
react-dom.development.js -0.3% -0.3% 912.78 KB 910.44 KB 199.95 KB 199.27 KB UMD_DEV
react-dom-server.browser.development.js -1.3% -0.9% 137.89 KB 136.12 KB 35.08 KB 34.78 KB UMD_DEV
react-dom.production.min.js 0.0% 0.0% 119.75 KB 119.75 KB 38.22 KB 38.22 KB UMD_PROD
react-dom-server.browser.production.min.js 0.0% 0.0% 20.44 KB 20.44 KB 7.49 KB 7.49 KB UMD_PROD
react-dom.profiling.min.js 0.0% 0.0% 123.4 KB 123.4 KB 39.39 KB 39.39 KB UMD_PROFILING
react-dom.development.js +0.2% +0.3% 865.25 KB 866.69 KB 196.31 KB 196.86 KB NODE_DEV
react-dom-server.browser.development.js +1.6% +2.0% 127.17 KB 129.14 KB 33.71 KB 34.37 KB NODE_DEV
react-dom.production.min.js 0.0% 0.0% 119.9 KB 119.9 KB 37.45 KB 37.45 KB NODE_PROD
react-dom-server.browser.production.min.js 0.0% 0.0% 20.36 KB 20.36 KB 7.44 KB 7.44 KB NODE_PROD
ReactDOM-prod.js 0.0% 0.0% 370.74 KB 370.74 KB 67.5 KB 67.51 KB FB_WWW_PROD
ReactDOMServer-prod.js 0.0% -0.0% 46.68 KB 46.68 KB 10.85 KB 10.84 KB FB_WWW_PROD
ReactDOM-profiling.js 0.0% 0.0% 381.95 KB 381.95 KB 69.63 KB 69.63 KB FB_WWW_PROFILING
react-dom-unstable-native-dependencies.development.js 0.0% 0.0% 55.87 KB 55.87 KB 14.47 KB 14.47 KB NODE_DEV
react-dom-unstable-fizz.node.development.js 0.0% +0.1% 3.69 KB 3.69 KB 1.34 KB 1.34 KB NODE_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% 🔺+0.1% 10 KB 10 KB 3.37 KB 3.38 KB NODE_PROD
react-dom-unstable-fizz.node.production.min.js 0.0% 🔺+0.3% 1.16 KB 1.16 KB 662 B 664 B NODE_PROD
react-dom-unstable-fizz.browser.development.js 0.0% +0.2% 3.35 KB 3.35 KB 1.27 KB 1.27 KB UMD_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.1% 1.19 KB 1.19 KB 699 B 700 B UMD_PROD
react-dom-unstable-fizz.browser.development.js 0.0% +0.2% 2.95 KB 2.95 KB 1.18 KB 1.18 KB NODE_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.2% 1 KB 1 KB 610 B 611 B NODE_PROD

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactTestRenderer-dev.js +0.3% +0.5% 550.41 KB 552.04 KB 115.93 KB 116.52 KB FB_WWW_DEV
react-test-renderer-shallow.development.js 0.0% 0.0% 39.55 KB 39.55 KB 9.49 KB 9.49 KB UMD_DEV
react-test-renderer-shallow.production.min.js 0.0% 0.0% 12.9 KB 12.9 KB 3.93 KB 3.94 KB UMD_PROD
react-test-renderer.development.js -0.4% -0.4% 553.22 KB 550.89 KB 115.18 KB 114.73 KB UMD_DEV
react-test-renderer.production.min.js 0.0% 0.0% 71.13 KB 71.13 KB 21.62 KB 21.63 KB UMD_PROD
react-test-renderer.development.js +0.3% +0.5% 523.58 KB 525.02 KB 112.84 KB 113.38 KB NODE_DEV
react-test-renderer.production.min.js 0.0% 🔺+0.1% 70.94 KB 70.94 KB 21.29 KB 21.3 KB NODE_PROD

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-prod.js 0.0% 0.0% 260.62 KB 260.62 KB 45.22 KB 45.23 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js 0.0% 0.0% 271.77 KB 271.77 KB 47.35 KB 47.36 KB RN_OSS_PROFILING
ReactFabric-prod.js 0.0% 0.0% 252.52 KB 252.52 KB 43.73 KB 43.74 KB RN_OSS_PROD
ReactFabric-profiling.js 0.0% 0.0% 263.68 KB 263.68 KB 45.87 KB 45.88 KB RN_OSS_PROFILING
ReactFabric-dev.js +0.3% +0.4% 614.45 KB 616.08 KB 132.37 KB 132.93 KB RN_FB_DEV
ReactFabric-prod.js 0.0% 0.0% 252.87 KB 252.87 KB 43.81 KB 43.83 KB RN_FB_PROD
ReactNativeRenderer-dev.js +0.3% +0.4% 629.55 KB 631.19 KB 136.26 KB 136.83 KB RN_OSS_DEV
ReactFabric-profiling.js 0.0% 0.0% 264.02 KB 264.02 KB 45.94 KB 45.95 KB RN_FB_PROFILING
ReactNativeRenderer-dev.js +0.3% +0.4% 632.53 KB 634.16 KB 136.65 KB 137.24 KB RN_FB_DEV
ReactNativeRenderer-prod.js 0.0% 0.0% 261.01 KB 261.01 KB 45.28 KB 45.29 KB RN_FB_PROD
ReactNativeRenderer-profiling.js 0.0% 0.0% 272.16 KB 272.16 KB 47.41 KB 47.42 KB RN_FB_PROFILING
ReactFabric-dev.js +0.3% +0.4% 611.57 KB 613.2 KB 131.98 KB 132.54 KB RN_OSS_DEV

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler-persistent.development.js +0.3% +0.4% 552.18 KB 553.62 KB 116.82 KB 117.33 KB NODE_DEV
react-reconciler-reflection.development.js 0.0% -0.0% 16.01 KB 16.01 KB 4.9 KB 4.9 KB NODE_DEV
react-reconciler-persistent.production.min.js 0.0% 0.0% 73.5 KB 73.5 KB 21.73 KB 21.74 KB NODE_PROD
react-reconciler-reflection.production.min.js 0.0% 🔺+0.1% 2.81 KB 2.81 KB 1.21 KB 1.21 KB NODE_PROD
react-reconciler.development.js +0.3% +0.4% 574.25 KB 575.69 KB 120.84 KB 121.34 KB NODE_DEV
react-reconciler.production.min.js 0.0% 0.0% 76.25 KB 76.25 KB 22.4 KB 22.41 KB NODE_PROD

ReactDOM: size: 0.0%, gzip: 🔺+0.1%

React: size: 0.0%, gzip: 0.0%

Size changes (experimental)

Generated by 🚫 dangerJS against d241149

@sebmarkbage
Copy link
Collaborator

Looks like the tests doesn’t “see” the stack.

@gaearon
Copy link
Collaborator Author

gaearon commented Feb 25, 2020

Yeah, only for shallow renderer. I think it just needs to play along nicely by setting the current stack function.

@gaearon
Copy link
Collaborator Author

gaearon commented Feb 25, 2020

k this should fix it

Copy link
Collaborator

@sebmarkbage sebmarkbage left a comment

Choose a reason for hiding this comment

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

It would be nice if react-shallow-renderer did this too.

@gaearon
Copy link
Collaborator Author

gaearon commented Feb 28, 2020

It would be nice if react-shallow-renderer did this too.

Why?

@gaearon gaearon merged commit d72700f into facebook:master Feb 28, 2020
@gaearon gaearon deleted the no-pt branch February 28, 2020 01:21
@ljharb
Copy link
Contributor

ljharb commented Feb 28, 2020

@gaearon wouldn't it make more sense to add native ESM to prop-types? I'm happy to do that.

@gaearon
Copy link
Collaborator Author

gaearon commented Feb 28, 2020

I think that would be good in general but the concern is that the ecosystem is not ready for transitive usage of ESM. We don’t want to make them autodiscoverable yet, but then it’s hard to try them without manually aliasing everything. So we were hoping to make this very scoped. Since we don’t really need either of those deps in a meaningful way. We also wanted to make React itself have zero dependencies anyway.

@ljharb
Copy link
Contributor

ljharb commented Feb 28, 2020

Node 13.3+ supports it and it’s planned to be backported into node 12 in April, I’m not sure why the ecosystem wouldn’t be ready.

“zero dependencies” isn’t honestly reached by inlining dependencies :-/ I’m confused why that’s a valuable.

@sebmarkbage
Copy link
Collaborator

sebmarkbage commented Feb 28, 2020

Zero dependencies is a valuable property for predictability, security, risk of downstream breakages and being able to reason eg about cost. Also makes things easier for our maintainability.

It comes with tradeoffs too but if this is the only one left, it doesn’t provide much value to leave it in. Especially since it’s DEV only it doesn’t get duplicated in prod so it doesn’t come with the normal downside of code duplication in the production bundles.

Another nice property is that now prop-types isn't privileged and you could publish alternative variants for checkers. React just calls the checkers.

@bvaughn
Copy link
Contributor

bvaughn commented Mar 9, 2020

FYI it's been reported that this change broke behavior of PropTypes.resetWarningCache(), which makes sense.

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.

6 participants