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:
Chang Yan
2018-05-22 15:38:02 -07:00
committed by GitHub
parent 893ed3e443
commit 127229fd97
13 changed files with 158 additions and 0 deletions
@@ -14,6 +14,7 @@ const ReactFeatureFlags = {
debugRenderPhaseSideEffects: false,
debugRenderPhaseSideEffectsForStrictMode: false,
warnAboutDeprecatedLifecycles: true,
warnAboutLegacyContextAPI: true,
};
module.exports = ReactFeatureFlags;