-
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
Adds experimental event API scaffolding #15108
Merged
trueadm
merged 2 commits into
facebook:master
from
trueadm:add-event-api-symbols-and-placeholders
Mar 14, 2019
Merged
Adds experimental event API scaffolding #15108
trueadm
merged 2 commits into
facebook:master
from
trueadm:add-event-api-symbols-and-placeholders
Mar 14, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trueadm
changed the title
Adds event API Symbols and placeholder functions
Adds experimental event API scaffolding
Mar 14, 2019
Now I'm really curious about what you've worked on internally at Facebook. |
threepointone
approved these changes
Mar 14, 2019
React: size: 0.0%, gzip: -0.0% ReactDOM: size: 🔺+0.1%, gzip: 0.0% Details of bundled changes.Comparing: 679402a...34d0cc9 react
react-dom
react-art
react-native-renderer
react-test-renderer
react-reconciler
Generated by 🚫 dangerJS |
gaearon
approved these changes
Mar 14, 2019
sebmarkbage
reviewed
Mar 14, 2019
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.
Can you do a follow up to wrap in feature flags?
NMinhNguyen
referenced
this pull request
in enzymejs/react-shallow-renderer
Jan 29, 2020
* Adds experimental event API scaffolding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds some scaffolding to React needed for the event API experiment that we're testing out internally at Facebook. The API will be behind a
enableEventAPI
flag to ensure the logic is kept in isolation.This scaffolding in this PR doesn't add any functionality. This PR inserts placeholders, symbols for the new fibers, functions and tags/types in preparation for follow up PRs that add the implementations. In the interests of making this experimental event API easier to review and consume, I've opted to create lots of smaller PRs.
This PR is only one part of the work to add the event API, so expect other PRs that expand on this and fill in the implementations. #15036 is the previous part of work.
I plan on writing up an RFC explaining this event API, along with how the internals work (such as the new symbols) once we've had a chance to iron out some details internally.