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

Function pushHostContainer

code/communication/public/app.js:11944–11955  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

11942 }
11943
11944 function pushHostContainer(fiber, nextRootInstance) {
11945 // Push current root instance onto the stack;
11946 // This allows us to reset root when portals are popped.
11947 push(rootInstanceStackCursor, nextRootInstance, fiber);
11948
11949 var nextRootContext = getRootHostContext(nextRootInstance);
11950
11951 // Track the context and the Fiber that provided it.
11952 // This enables us to pop only Fibers that provide unique contexts.
11953 push(contextFiberStackCursor, fiber, fiber);
11954 push(contextStackCursor, nextRootContext, fiber);
11955 }
11956
11957 function popHostContainer(fiber) {
11958 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