-
Notifications
You must be signed in to change notification settings - Fork 47.8k
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
Disable legacy context #27830
Disable legacy context #27830
Conversation
ac37c2c
to
4233a4c
Compare
!require('shared/ReactFeatureFlags').disableModulePatternComponents && | ||
!require('shared/ReactFeatureFlags').disableLegacyContext | ||
) { | ||
it('renders an error state if module-style context provider throws in componentWillMount', () => { |
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.
I'm not exactly sure what's going on with these tests that @GATE doesn't work. I think it's that the test is expected to fail in prod, but doesn't because there's no deprecation warnings in prod.
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.
Needs to be:
// @gate !disableModulePatternComponents
// @gate !disableLegacyContext || !__DEV__
I fixed this in #28151
React is getting major Update? 👀 |
We can probably close this because I landed it to experimental already: #28151 |
690d733
to
2a72516
Compare
Dupe of #27991 |
Disables legacy context for the next major release. These have been deprecated for a long time now and have been warning.