- Notifications
You must be signed in to change notification settings - Fork50.5k
feat(StrictMode): Double-invoke render for every component#18430
feat(StrictMode): Double-invoke render for every component#18430gaearon merged 2 commits intofacebook:masterfrom
Conversation
codesandbox-cibot commentedMar 29, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This pull request is automatically built and testable inCodeSandbox. To see build info of the built libraries, clickhere or the icon next to each commit SHA. Latest deployment of this branch, based on commite508cee:
|
sizebot commentedMar 29, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Details of bundled changes.Comparing:1af2a10...e508cee react-art
react-dom
react-reconciler
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (stable) |
sizebot commentedMar 29, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Details of bundled changes.Comparing:1af2a10...e508cee react-dom
react-art
react-native-renderer
react-reconciler
ReactDOM: size: 0.0%, gzip: -0.0% Size changes (experimental) |
gaearon commentedMar 29, 2020
Seems like bundle tests fail. |
eps1lon commentedMar 29, 2020
It seems like react-test-renderer is not using Apparently |
eps1lon commentedMar 29, 2020
Followinghttps://github.com/facebook/react/pull/14639/files#diff-0b241de0dfec2d07bb2b2fef76b254d2R11-R24 though I don't think I understand the distinction between source and build tests. |
gaearon commentedMar 29, 2020
Not sure what you mean by this. In the bundle tests, The difference is that you can't set feature flags for bundle tests. Because nothing will read them. They're already compiled away. |
gaearon commentedMar 29, 2020
Looks good. Thanks. |
Summary
Closes#18426.
Essentially#14639 rebased with
masterwhere concerns were voiced about existing tests.Test Plan
ReactHooks-internal is responsible for this test. This also affects any test counting renders.