Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set owner correctly inside forwardRef and context consumer
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.
- Loading branch information