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

Function pushHostContainer

code/dependency-injection/public/app.js:12002–12013  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

12000 }
12001
12002 function pushHostContainer(fiber, nextRootInstance) {
12003 // Push current root instance onto the stack;
12004 // This allows us to reset root when portals are popped.
12005 push(rootInstanceStackCursor, nextRootInstance, fiber);
12006
12007 var nextRootContext = getRootHostContext(nextRootInstance);
12008
12009 // Track the context and the Fiber that provided it.
12010 // This enables us to pop only Fibers that provide unique contexts.
12011 push(contextFiberStackCursor, fiber, fiber);
12012 push(contextStackCursor, nextRootContext, fiber);
12013 }
12014
12015 function popHostContainer(fiber) {
12016 pop(contextStackCursor, fiber);

Callers 3

pushHostRootContextFunction · 0.70
updatePortalComponentFunction · 0.70
bailoutOnLowPriorityFunction · 0.70

Calls 1

pushFunction · 0.70

Tested by

no test coverage detected