(workInProgress)
| 12562 | } |
| 12563 | |
| 12564 | function pushContextProvider(workInProgress) { |
| 12565 | if (!isContextProvider(workInProgress)) { |
| 12566 | return false; |
| 12567 | } |
| 12568 | |
| 12569 | var instance = workInProgress.stateNode; |
| 12570 | // We push the context as early as possible to ensure stack integrity. |
| 12571 | // If the instance does not exist yet, we will push null at first, |
| 12572 | // and replace it on the stack later when invalidating the context. |
| 12573 | var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; |
| 12574 | |
| 12575 | // Remember the parent context so we can merge with it later. |
| 12576 | // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates. |
| 12577 | previousContext = contextStackCursor.current; |
| 12578 | push(contextStackCursor, memoizedMergedChildContext, workInProgress); |
| 12579 | push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); |
| 12580 | |
| 12581 | return true; |
| 12582 | } |
| 12583 | |
| 12584 | function invalidateContextProvider(workInProgress, didChange) { |
| 12585 | var instance = workInProgress.stateNode; |
nothing calls this directly
no test coverage detected