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

Extract some of the tidy up changes from 19278 #19315

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Jul 10, 2020

In order to make #19278 a bit smaller in terms of changes, this extracts some of the tidy up changes from that PR. #19278 should now only refer to the changes reflecting to moving away from capture phase events.

@trueadm trueadm requested a review from gaearon July 10, 2020 20:11
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 10, 2020
Copy link
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

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

Seems legit, but I don't have strong opinions on the names here

);
} else if (isValidEventTarget(target)) {
const eventTarget = ((target: any): EventTarget);
const listenerMap = getEventListenerMap(eventTarget);
listenToTopLevelEvent(
listenToNativeEvent(
topLevelType,
Copy link
Member

Choose a reason for hiding this comment

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

Should this change to nativeEventType then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dan's further change to remove the concept topLevelType will address this.

@sizebot
Copy link

sizebot commented Jul 10, 2020

Details of bundled changes.

Comparing: a2b4db0...2d8d1fd

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.development.js 0.0% 0.0% 880.71 KB 881.08 KB 201.72 KB 201.79 KB NODE_DEV
ReactDOMForked-prod.js 🔺+0.2% 🔺+0.1% 403.56 KB 404.37 KB 74.63 KB 74.7 KB FB_WWW_PROD
react-dom-server.node.development.js 0.0% -0.0% 137.33 KB 137.33 KB 36.47 KB 36.47 KB NODE_DEV
react-dom.production.min.js 0.0% 0.0% 118.91 KB 118.93 KB 38.23 KB 38.23 KB NODE_PROD
ReactDOMForked-profiling.js +0.2% +0.1% 414.24 KB 415.05 KB 76.38 KB 76.45 KB FB_WWW_PROFILING
react-dom-server.browser.development.js 0.0% -0.0% 143.45 KB 143.45 KB 36.68 KB 36.68 KB UMD_DEV
ReactDOMTesting-dev.js +0.1% +0.1% 980.95 KB 981.67 KB 219.48 KB 219.6 KB FB_WWW_DEV
ReactDOMTesting-prod.js 🔺+0.2% 🔺+0.1% 411.45 KB 412.26 KB 77.29 KB 77.35 KB FB_WWW_PROD
react-dom-test-utils.production.min.js 0.0% -0.0% 10.19 KB 10.19 KB 3.98 KB 3.98 KB NODE_PROD
react-dom.development.js 0.0% 0.0% 925.28 KB 925.65 KB 204.12 KB 204.19 KB UMD_DEV
react-dom.production.min.js 0.0% -0.0% 118.79 KB 118.8 KB 39 KB 39 KB UMD_PROD
react-dom.profiling.min.js 0.0% 0.0% 122.71 KB 122.72 KB 40.15 KB 40.15 KB UMD_PROFILING
ReactDOMForked-dev.js +0.1% +0.1% 999.64 KB 1000.35 KB 222.95 KB 223.07 KB FB_WWW_DEV
react-dom.profiling.min.js 0.0% 0.0% 122.97 KB 122.98 KB 39.44 KB 39.44 KB NODE_PROFILING
ReactDOM-dev.js +0.1% +0.1% 1013.55 KB 1014.27 KB 225.19 KB 225.31 KB FB_WWW_DEV
ReactDOM-prod.js 🔺+0.2% 🔺+0.1% 408.5 KB 409.31 KB 75.61 KB 75.68 KB FB_WWW_PROD
react-dom-server.browser.development.js 0.0% -0.0% 136.06 KB 136.06 KB 36.22 KB 36.22 KB NODE_DEV
ReactDOM-profiling.js +0.2% +0.1% 419.19 KB 420 KB 77.37 KB 77.44 KB FB_WWW_PROFILING
ReactDOMServer-dev.js 0.0% -0.0% 147.36 KB 147.36 KB 37.42 KB 37.42 KB FB_WWW_DEV
react-dom-test-utils.development.js 0.0% -0.0% 55.52 KB 55.52 KB 15.36 KB 15.36 KB UMD_DEV

Size changes (stable)

Generated by 🚫 dangerJS against 2d8d1fd

@sizebot
Copy link

sizebot commented Jul 10, 2020

Details of bundled changes.

Comparing: a2b4db0...2d8d1fd

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.development.js 0.0% 0.0% 913.24 KB 913.62 KB 207.59 KB 207.67 KB NODE_DEV
ReactDOMForked-prod.js 🔺+0.2% 🔺+0.1% 392.37 KB 393.25 KB 73.1 KB 73.18 KB FB_WWW_PROD
react-dom.production.min.js 0.0% -0.0% 123.67 KB 123.68 KB 39.64 KB 39.63 KB NODE_PROD
ReactDOMForked-profiling.js +0.2% +0.1% 403 KB 403.87 KB 74.84 KB 74.92 KB FB_WWW_PROFILING
react-dom-server.browser.development.js 0.0% -0.0% 145.04 KB 145.04 KB 36.88 KB 36.88 KB UMD_DEV
react-dom-server.node.production.min.js 0.0% 0.0% 20.71 KB 20.71 KB 7.67 KB 7.67 KB NODE_PROD
ReactDOMTesting-dev.js +0.1% +0.1% 952.83 KB 953.54 KB 213.6 KB 213.71 KB FB_WWW_DEV
ReactDOMTesting-prod.js 🔺+0.2% 🔺+0.1% 398.15 KB 398.88 KB 75.4 KB 75.46 KB FB_WWW_PROD
react-dom-unstable-fizz.node.development.js 0.0% +0.1% 5.61 KB 5.61 KB 1.86 KB 1.86 KB NODE_DEV
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.1% 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.2% 1.17 KB 1.17 KB 666 B 665 B NODE_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.1% 1.2 KB 1.2 KB 704 B 705 B UMD_PROD
react-dom.development.js 0.0% 0.0% 959.26 KB 959.63 KB 210.12 KB 210.19 KB UMD_DEV
react-dom.production.min.js 0.0% -0.1% 123.48 KB 123.49 KB 40.45 KB 40.42 KB UMD_PROD
react-dom.profiling.min.js 0.0% -0.0% 127.43 KB 127.44 KB 41.64 KB 41.64 KB UMD_PROFILING
ReactDOMForked-dev.js +0.1% +0.1% 974.09 KB 974.82 KB 217.76 KB 217.87 KB FB_WWW_DEV
react-dom.profiling.min.js 0.0% 0.0% 127.78 KB 127.8 KB 40.89 KB 40.89 KB NODE_PROFILING
ReactDOM-dev.js +0.1% +0.1% 988.01 KB 988.73 KB 220 KB 220.11 KB FB_WWW_DEV
ReactDOM-prod.js 🔺+0.2% 🔺+0.1% 397.32 KB 398.19 KB 74.08 KB 74.15 KB FB_WWW_PROD
ReactDOM-profiling.js +0.2% +0.1% 407.94 KB 408.81 KB 75.81 KB 75.9 KB FB_WWW_PROFILING
ReactDOMServer-dev.js 0.0% 0.0% 143.33 KB 143.33 KB 36.42 KB 36.42 KB FB_WWW_DEV
ReactDOMServer-prod.js 0.0% -0.0% 46.7 KB 46.7 KB 10.92 KB 10.92 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

Size changes (experimental)

Generated by 🚫 dangerJS against 2d8d1fd

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 10, 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 2d8d1fd:

Sandbox Source
React Configuration

@trueadm trueadm force-pushed the clean-up-event-system branch 2 times, most recently from 5ca4f6f to 4064c18 Compare July 10, 2020 21:17
Add Flow changes

Add Flow changes

Add Flow changes

Add Flow changes
@trueadm trueadm merged commit 61dd00d into facebook:master Jul 10, 2020
@trueadm trueadm deleted the clean-up-event-system branch July 10, 2020 21:33
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.

None yet

4 participants