mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
e57ad7f51e
If your renderer doesn't use host context, you might prefer to return null. This used to give an error: > Invariant Violation: Expected host context to exist. This error is likely caused by a bug in React. Please file an issue. I use a sentinel value instead now. The code in ReactFiberHostContext is a little complicated now. We could probably also just remove the invariants.