(workInProgress)
| 10962 | } |
| 10963 | |
| 10964 | function pushContextProvider(workInProgress) { |
| 10965 | { |
| 10966 | var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity. |
| 10967 | // If the instance does not exist yet, we will push null at first, |
| 10968 | // and replace it on the stack later when invalidating the context. |
| 10969 | |
| 10970 | var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later. |
| 10971 | // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates. |
| 10972 | |
| 10973 | previousContext = contextStackCursor.current; |
| 10974 | push(contextStackCursor, memoizedMergedChildContext, workInProgress); |
| 10975 | push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress); |
| 10976 | return true; |
| 10977 | } |
| 10978 | } |
| 10979 | |
| 10980 | function invalidateContextProvider(workInProgress, type, didChange) { |
| 10981 | { |
no test coverage detected