Skip to content

Add feature flag around React.createFactory#17873

Merged
trueadm merged 1 commit into
react:masterfrom
trueadm:create-factory-flag
Jan 20, 2020
Merged

Add feature flag around React.createFactory#17873
trueadm merged 1 commit into
react:masterfrom
trueadm:create-factory-flag

Conversation

@trueadm

@trueadm trueadm commented Jan 20, 2020

Copy link
Copy Markdown
Contributor

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.

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jan 20, 2020
@sizebot

sizebot commented Jan 20, 2020

Copy link
Copy Markdown

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against 4314afa

@sizebot

sizebot commented Jan 20, 2020

Copy link
Copy Markdown

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against 4314afa

@threepointone threepointone left a comment

Copy link
Copy Markdown
Contributor

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
@trueadm trueadm force-pushed the create-factory-flag branch from b8ce161 to 4314afa Compare January 20, 2020 13:40
@codesandbox-ci

Copy link
Copy Markdown

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 react:master Jan 20, 2020
@trueadm trueadm deleted the create-factory-flag branch January 20, 2020 15:00
@sebmarkbage

Copy link
Copy Markdown
Contributor

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

trueadm commented Jan 20, 2020

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

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

@trueadm

trueadm commented Jan 21, 2020

Copy link
Copy Markdown
Contributor Author

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.

5 participants