mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
add legacy context API warning in strict mode (#12849)
* add legacy context APIs warning in strict mode * refactor if statement and the warning message * add other flags for type check * add component stack tree and refactor wording * fix the nits
This commit is contained in:
@@ -14,6 +14,7 @@ const ReactFeatureFlags = {
|
||||
debugRenderPhaseSideEffects: false,
|
||||
debugRenderPhaseSideEffectsForStrictMode: false,
|
||||
warnAboutDeprecatedLifecycles: true,
|
||||
warnAboutLegacyContextAPI: true,
|
||||
};
|
||||
|
||||
module.exports = ReactFeatureFlags;
|
||||
|
||||
Reference in New Issue
Block a user