MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / pushHostContainer

Function pushHostContainer

code/composition/public/app.js:12047–12058  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

12045 }
12046
12047 function pushHostContainer(fiber, nextRootInstance) {
12048 // Push current root instance onto the stack;
12049 // This allows us to reset root when portals are popped.
12050 push(rootInstanceStackCursor, nextRootInstance, fiber);
12051
12052 var nextRootContext = getRootHostContext(nextRootInstance);
12053
12054 // Track the context and the Fiber that provided it.
12055 // This enables us to pop only Fibers that provide unique contexts.
12056 push(contextFiberStackCursor, fiber, fiber);
12057 push(contextStackCursor, nextRootContext, fiber);
12058 }
12059
12060 function popHostContainer(fiber) {
12061 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