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

Function popHostContext

code/communication/public/app.js:11984–11993  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

11982 }
11983
11984 function popHostContext(fiber) {
11985 // Do not pop unless this Fiber provided the current context.
11986 // pushHostContext() only pushes Fibers that provide unique contexts.
11987 if (contextFiberStackCursor.current !== fiber) {
11988 return;
11989 }
11990
11991 pop(contextStackCursor, fiber);
11992 pop(contextFiberStackCursor, fiber);
11993 }
11994
11995 return {
11996 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