(type: Function)
| 118 | } |
| 119 | |
| 120 | function isContextProvider(type: Function): boolean { |
| 121 | if (disableLegacyContext) { |
| 122 | return false; |
| 123 | } else { |
| 124 | const childContextTypes = type.childContextTypes; |
| 125 | return childContextTypes !== null && childContextTypes !== undefined; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | function popContext(fiber: Fiber): void { |
| 130 | if (disableLegacyContext) { |
no outgoing calls
no test coverage detected