(workInProgress)
| 12432 | var previousContext = emptyObject; |
| 12433 | |
| 12434 | function getUnmaskedContext(workInProgress) { |
| 12435 | var hasOwnContext = isContextProvider(workInProgress); |
| 12436 | if (hasOwnContext) { |
| 12437 | // If the fiber is a context provider itself, when we read its context |
| 12438 | // we have already pushed its own child context on the stack. A context |
| 12439 | // provider should not "see" its own child context. Therefore we read the |
| 12440 | // previous (parent) context instead for a context provider. |
| 12441 | return previousContext; |
| 12442 | } |
| 12443 | return contextStackCursor.current; |
| 12444 | } |
| 12445 | |
| 12446 | function cacheContext(workInProgress, unmaskedContext, maskedContext) { |
| 12447 | var instance = workInProgress.stateNode; |
no test coverage detected