mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
2a4d2ca7fc
Previously, _owner would be null if you create an element inside forwardRef or inside a context consumer. This is used by ReactNativeFiberInspector when traversing the hierarchy and also to give more info in some warning texts. This also means you'll now correctly get a warning if you call setState inside one of these. Test Plan: Tim tried it in the RN inspector.