-
Notifications
You must be signed in to change notification settings - Fork 49.2k
Modern Event System: Add support for internal FB Primer #18210
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
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 bba107d:
|
Details of bundled changes.Comparing: 355970a...bba107d react-dom
ReactDOM: size: 0.0%, gzip: -0.0% Size changes (stable) |
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.
I have some questions!
packages/react-dom/src/events/__tests__/DOMModernPluginEventSystem-test.internal.js
Outdated
Show resolved
Hide resolved
packages/react-dom/src/events/__tests__/DOMModernPluginEventSystem-test.internal.js
Outdated
Show resolved
Hide resolved
842e2e4
to
9610878
Compare
b634b90
to
1445095
Compare
packages/react-dom/src/events/__tests__/DOMModernPluginEventSystem-test.internal.js
Show resolved
Hide resolved
1445095
to
653c938
Compare
Address feedback Ensure click onl Fix Address feedback Fix
653c938
to
bba107d
Compare
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.
Approving to unblock
This PR exposes a new flag to be used with the modern event system:
enableLegacyFBPrimerSupport
. This flag should be enabled in non-experimental internal bundles only.When this flag is enabled, we attempt to detect internal FB Primer event heuristics, so we know to defer the internal React dispatching till after Primer has run. We do this using as one-time document event listener.