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

[act] remove obsolete container and warning #16312

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

threepointone
Copy link
Contributor

@threepointone threepointone commented Aug 7, 2019

In a previous version of act(), we used a dummy dom element to flush effects. This doesn't need to exist anymore, and this PR removes it. The warning doesn't need to be there either (React will fire a wrong renderer act warning if needed).

@sizebot
Copy link

sizebot commented Aug 7, 2019

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

Details of bundled changes.

Comparing: 66a4742...94e5f8f

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% 114.76 KB 114.76 KB 36.26 KB 36.26 KB NODE_PROFILING
react-dom-server.browser.development.js 0.0% -0.0% 137.78 KB 137.78 KB 36.32 KB 36.32 KB UMD_DEV
ReactDOM-dev.js 0.0% -0.0% 931.71 KB 931.71 KB 206.05 KB 206.04 KB FB_WWW_DEV
react-dom-server.browser.production.min.js 0.0% -0.0% 19.26 KB 19.26 KB 7.22 KB 7.22 KB UMD_PROD
react-dom-test-utils.development.js -1.6% -1.6% 58.05 KB 57.14 KB 15.97 KB 15.71 KB UMD_DEV
react-dom-unstable-fizz.browser.development.js 0.0% -0.1% 3.78 KB 3.78 KB 1.53 KB 1.53 KB UMD_DEV
react-dom-test-utils.production.min.js -0.7% -0.3% 11.28 KB 11.2 KB 4.16 KB 4.15 KB UMD_PROD
react-dom-test-utils.development.js -1.6% -1.7% 56.33 KB 55.41 KB 15.64 KB 15.38 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.8% -0.6% 11.06 KB 10.98 KB 4.11 KB 4.08 KB NODE_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.2% 1.04 KB 1.04 KB 633 B 634 B NODE_PROD
react-dom.development.js 0.0% -0.0% 907.62 KB 907.62 KB 206.09 KB 206.09 KB UMD_DEV
react-dom.production.min.js 0.0% -0.0% 111.15 KB 111.15 KB 35.85 KB 35.85 KB UMD_PROD
ReactTestUtils-dev.js -1.9% -1.9% 53.78 KB 52.76 KB 14.38 KB 14.1 KB FB_WWW_DEV
react-dom.profiling.min.js 0.0% -0.0% 114.55 KB 114.55 KB 36.86 KB 36.85 KB UMD_PROFILING
react-dom.development.js 0.0% -0.0% 901.92 KB 901.92 KB 204.5 KB 204.5 KB NODE_DEV
react-dom-server.node.development.js 0.0% -0.0% 134.93 KB 134.93 KB 35.6 KB 35.6 KB NODE_DEV
react-dom.production.min.js 0.0% -0.0% 111.12 KB 111.12 KB 35.3 KB 35.3 KB NODE_PROD
react-dom-server.node.production.min.js 0.0% -0.0% 19.6 KB 19.6 KB 7.37 KB 7.37 KB NODE_PROD
ReactDOM-prod.js 0.0% -0.0% 372.67 KB 372.67 KB 68.39 KB 68.39 KB FB_WWW_PROD
react-dom-server.browser.development.js 0.0% -0.0% 133.91 KB 133.91 KB 35.38 KB 35.38 KB NODE_DEV
react-dom-server.browser.production.min.js 0.0% -0.0% 19.19 KB 19.19 KB 7.21 KB 7.21 KB NODE_PROD
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 60.71 KB 60.71 KB 15.85 KB 15.85 KB UMD_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.0% 10.75 KB 10.75 KB 3.68 KB 3.68 KB UMD_PROD
ReactDOMServer-dev.js 0.0% -0.0% 137.93 KB 137.93 KB 34.91 KB 34.91 KB FB_WWW_DEV
ReactDOMServer-prod.js 0.0% 0.0% 46.58 KB 46.58 KB 10.78 KB 10.78 KB FB_WWW_PROD
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 60.39 KB 60.39 KB 15.72 KB 15.72 KB NODE_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.1% 10.49 KB 10.49 KB 3.58 KB 3.58 KB NODE_PROD
react-dom-unstable-fizz.node.production.min.js 0.0% -0.1% 1.1 KB 1.1 KB 668 B 667 B NODE_PROD

Generated by 🚫 dangerJS

@threepointone threepointone force-pushed the redundant-act-element branch from 1e3aef4 to 9a1bdec Compare August 9, 2019 13:17
In a previous version of `act()`, we used a dummy dom element to flush effects and such. This doesn't need to exist anymore. The warning itself is still useful, so we'll keep it. Updated the test.
@threepointone threepointone force-pushed the redundant-act-element branch from 9a1bdec to 94e5f8f Compare August 9, 2019 13:18
@threepointone threepointone changed the title [act] remove obsolete container element [act] remove obsolete container and warning Aug 9, 2019
@threepointone threepointone merged commit b9faa3b into facebook:master Aug 9, 2019
@threepointone threepointone deleted the redundant-act-element branch August 9, 2019 13:26
NMinhNguyen referenced this pull request in enzymejs/react-shallow-renderer Jan 29, 2020
In a previous version of act(), we used a dummy dom element to flush effects. This doesn't need to exist anymore, and this PR removes it. The warning doesn't need to be there either (React will fire a wrong renderer act warning if needed).
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