-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Conversation
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.
codesandbox CI build failing? looks like a transient error.
Add comment to re-trigger build
b8ce161
to
4314afa
Compare
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:
|
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? |
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. |
We should add the warning now then. I'm scared we'll forget it if we leave it. |
Agreed @sebmarkbage. PR is up for review: #17878 |
This PR adds a
disableCreateFactory
feature flag that allows us to disableReact.createFactory
from being exported from the React package. I also had to update all tests that made use of this API and move them toReact.createElement
.