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

Function popHostContext

code/styling/public/app.js:11949–11958  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

11947 }
11948
11949 function popHostContext(fiber) {
11950 // Do not pop unless this Fiber provided the current context.
11951 // pushHostContext() only pushes Fibers that provide unique contexts.
11952 if (contextFiberStackCursor.current !== fiber) {
11953 return;
11954 }
11955
11956 pop(contextStackCursor, fiber);
11957 pop(contextFiberStackCursor, fiber);
11958 }
11959
11960 return {
11961 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