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

React Events: extract shared functions #15449

Merged

Conversation

necolas
Copy link
Contributor

@necolas necolas commented Apr 19, 2019

Moving functions that are used across the event modules to a shared module. This is currently being inlined in each event module. We can determine which, if any, of these functions could be moved into the core and exposed via context. And we could avoid inlining any remaining shared code that doesn't belong in core.

Copy link
Contributor

@trueadm trueadm left a comment

Choose a reason for hiding this comment

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

We need a build time fork of this file for FB too. Otherwise this will just be inlined again.

@necolas necolas merged commit 5857c89 into facebook:master Apr 19, 2019
@necolas necolas deleted the react-events/extract-shared-helpers branch April 19, 2019 17:06
@NE-SmallTown
Copy link
Contributor

I think rename the file name to a 'shared' directory maybe will be more common

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants