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

Function popHostContext

code/controlled-uncontrolled/public/app.js:11273–11282  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

11271 }
11272
11273 function popHostContext(fiber) {
11274 // Do not pop unless this Fiber provided the current context.
11275 // pushHostContext() only pushes Fibers that provide unique contexts.
11276 if (contextFiberStackCursor.current !== fiber) {
11277 return;
11278 }
11279
11280 pop(contextStackCursor, fiber);
11281 pop(contextFiberStackCursor, fiber);
11282 }
11283
11284 return {
11285 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