(c: Value | null)
| 34 | createCursor(null); |
| 35 | |
| 36 | function requiredContext<Value>(c: Value | null): Value { |
| 37 | if (__DEV__) { |
| 38 | if (c === null) { |
| 39 | console.error( |
| 40 | 'Expected host context to exist. This error is likely caused by a bug ' + |
| 41 | 'in React. Please file an issue.', |
| 42 | ); |
| 43 | } |
| 44 | } |
| 45 | return (c: any); |
| 46 | } |
| 47 | |
| 48 | function getCurrentRootHostContainer(): null | Container { |
| 49 | return rootInstanceStackCursor.current; |
no test coverage detected