(workInProgress)
| 11655 | var previousContext = emptyObject; |
| 11656 | |
| 11657 | function getUnmaskedContext(workInProgress) { |
| 11658 | var hasOwnContext = isContextProvider(workInProgress); |
| 11659 | if (hasOwnContext) { |
| 11660 | // If the fiber is a context provider itself, when we read its context |
| 11661 | // we have already pushed its own child context on the stack. A context |
| 11662 | // provider should not "see" its own child context. Therefore we read the |
| 11663 | // previous (parent) context instead for a context provider. |
| 11664 | return previousContext; |
| 11665 | } |
| 11666 | return contextStackCursor.current; |
| 11667 | } |
| 11668 | |
| 11669 | function cacheContext(workInProgress, unmaskedContext, maskedContext) { |
| 11670 | var instance = workInProgress.stateNode; |
no test coverage detected