-
Notifications
You must be signed in to change notification settings - Fork 47k
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
More event system cleanup and scaffolding #18179
Conversation
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 64dc9a4:
|
Details of bundled changes.Comparing: 4ee592e...64dc9a4 react-dom
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (stable) |
Details of bundled changes.Comparing: 4ee592e...64dc9a4 react-dom
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (experimental) |
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.
teeny tiny nits, but lgtm
Fix Address feedback Fix
This PR is another step towards adding a forked modern event system that uses roots. Before we get to that stage, we need to do some cleanup and add some parts of the scaffolding.
Specifically, this PR does the following:
ensureListeningTo
to accept modern/legacy eventslegacyTrapBubbledEvent
calls in a flag, as we won't do these in the modern event system (we use the capture phase instead).dispatchEventForLegacyPluginEventSystem
calls atDOMEventListener
behind the flag, as the entrance point for dispatching modern event system events.listenToTopLevelEvent
calls atReactDOMEventReplaying
behind the flag, as the entrance point for replaying modern event system events.DOMModernPluginEventSystem
module. This doesn't do much for now, the rest of the code and tests will come in a follow up PR. It does register events accordingly however.Note: there should be no functional changes to the existing legacy event system.