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

Function pushHostContainer

code/styling/public/app.js:11909–11920  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

11907 }
11908
11909 function pushHostContainer(fiber, nextRootInstance) {
11910 // Push current root instance onto the stack;
11911 // This allows us to reset root when portals are popped.
11912 push(rootInstanceStackCursor, nextRootInstance, fiber);
11913
11914 var nextRootContext = getRootHostContext(nextRootInstance);
11915
11916 // Track the context and the Fiber that provided it.
11917 // This enables us to pop only Fibers that provide unique contexts.
11918 push(contextFiberStackCursor, fiber, fiber);
11919 push(contextStackCursor, nextRootContext, fiber);
11920 }
11921
11922 function popHostContainer(fiber) {
11923 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