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

Add feature flag around React.createFactory #17873

Merged
merged 1 commit into from Jan 20, 2020

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Jan 20, 2020

This PR adds a disableCreateFactory feature flag that allows us to disable React.createFactory from being exported from the React package. I also had to update all tests that made use of this API and move them to React.createElement.

@sizebot
Copy link

sizebot commented Jan 20, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 4314afa

@sizebot
Copy link

sizebot commented Jan 20, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 4314afa

Copy link
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

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

codesandbox CI build failing? looks like a transient error.

Add comment to re-trigger build
@codesandbox-ci
Copy link

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 4314afa:

Sandbox Source
runtime-fire-svwtm Configuration

@trueadm trueadm merged commit a209a97 into facebook:master Jan 20, 2020
@trueadm trueadm deleted the create-factory-flag branch January 20, 2020 15:00
@sebmarkbage
Copy link
Collaborator

Before we actually remove this, we’ll need to run a warning for a while. Should we also have a flag to add the warning?

@trueadm
Copy link
Contributor Author

trueadm commented Jan 20, 2020

I thought we’d most likely just add the warning without a flag. I’ve removed all internal www usages, so this would mostly be OSS only.

@sebmarkbage
Copy link
Collaborator

We should add the warning now then. I'm scared we'll forget it if we leave it.

@trueadm
Copy link
Contributor Author

trueadm commented Jan 21, 2020

Agreed @sebmarkbage. PR is up for review: #17878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants