-
Notifications
You must be signed in to change notification settings - Fork 46.3k
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
Conversation
There was a problem hiding this 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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Details of bundled changes.Comparing: a2b4db0...2d8d1fd react-dom
Size changes (stable) |
Details of bundled changes.Comparing: a2b4db0...2d8d1fd react-dom
Size changes (experimental) |
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:
|
5ca4f6f
to
4064c18
Compare
Add Flow changes Add Flow changes Add Flow changes Add Flow changes
4064c18
to
2d8d1fd
Compare
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.