MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / popHostContext

Function popHostContext

code/new-context-api/public/app.js:11310–11319  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

11308 }
11309
11310 function popHostContext(fiber) {
11311 // Do not pop unless this Fiber provided the current context.
11312 // pushHostContext() only pushes Fibers that provide unique contexts.
11313 if (contextFiberStackCursor.current !== fiber) {
11314 return;
11315 }
11316
11317 pop(contextStackCursor, fiber);
11318 pop(contextFiberStackCursor, fiber);
11319 }
11320
11321 return {
11322 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