mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Part of https://github.com/facebook/react/pull/28207, this is easy to land in isolation. The approach I'm taking is slightly different — instead of leaving validation on for legacy context, I disable the validation (it's DEV-only) and leave just the parts that drive the runtime logic. I.e. `contexTypes` and `childContextTypes` *values* are now ignored, the keys are used just like before.