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

Function popHostContext

code/one-direction-data-flow/public/app.js:11822–11831  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

11820 }
11821
11822 function popHostContext(fiber) {
11823 // Do not pop unless this Fiber provided the current context.
11824 // pushHostContext() only pushes Fibers that provide unique contexts.
11825 if (contextFiberStackCursor.current !== fiber) {
11826 return;
11827 }
11828
11829 pop(contextStackCursor, fiber);
11830 pop(contextFiberStackCursor, fiber);
11831 }
11832
11833 return {
11834 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