MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / popHostContext

Function popHostContext

code/higher-order-components/public/app.js:11943–11952  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

11941 }
11942
11943 function popHostContext(fiber) {
11944 // Do not pop unless this Fiber provided the current context.
11945 // pushHostContext() only pushes Fibers that provide unique contexts.
11946 if (contextFiberStackCursor.current !== fiber) {
11947 return;
11948 }
11949
11950 pop(contextStackCursor, fiber);
11951 pop(contextFiberStackCursor, fiber);
11952 }
11953
11954 return {
11955 getHostContext: getHostContext,

Callers 4

completeWorkFunction · 0.70
unwindWorkFunction · 0.70
unwindInterruptedWorkFunction · 0.70
ReactFiberSchedulerFunction · 0.70

Calls 1

popFunction · 0.70

Tested by

no test coverage detected