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

Function popHostContext

code/dependency-injection/public/app.js:12042–12051  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

12040 }
12041
12042 function popHostContext(fiber) {
12043 // Do not pop unless this Fiber provided the current context.
12044 // pushHostContext() only pushes Fibers that provide unique contexts.
12045 if (contextFiberStackCursor.current !== fiber) {
12046 return;
12047 }
12048
12049 pop(contextStackCursor, fiber);
12050 pop(contextFiberStackCursor, fiber);
12051 }
12052
12053 return {
12054 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