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

Function popHostContext

code/composition/public/app.js:12087–12096  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

12085 }
12086
12087 function popHostContext(fiber) {
12088 // Do not pop unless this Fiber provided the current context.
12089 // pushHostContext() only pushes Fibers that provide unique contexts.
12090 if (contextFiberStackCursor.current !== fiber) {
12091 return;
12092 }
12093
12094 pop(contextStackCursor, fiber);
12095 pop(contextFiberStackCursor, fiber);
12096 }
12097
12098 return {
12099 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