( workInProgress: Fiber, unmaskedContext: Object, maskedContext: Object, )
| 57 | } |
| 58 | |
| 59 | function cacheContext( |
| 60 | workInProgress: Fiber, |
| 61 | unmaskedContext: Object, |
| 62 | maskedContext: Object, |
| 63 | ): void { |
| 64 | if (disableLegacyContext) { |
| 65 | return; |
| 66 | } else { |
| 67 | const instance = workInProgress.stateNode; |
| 68 | instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext; |
| 69 | instance.__reactInternalMemoizedMaskedChildContext = maskedContext; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | function getMaskedContext( |
| 74 | workInProgress: Fiber, |
no outgoing calls
no test coverage detected