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

Function pushHostContainer

code/controlled-uncontrolled/public/app.js:11233–11244  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

11231 }
11232
11233 function pushHostContainer(fiber, nextRootInstance) {
11234 // Push current root instance onto the stack;
11235 // This allows us to reset root when portals are popped.
11236 push(rootInstanceStackCursor, nextRootInstance, fiber);
11237
11238 var nextRootContext = getRootHostContext(nextRootInstance);
11239
11240 // Track the context and the Fiber that provided it.
11241 // This enables us to pop only Fibers that provide unique contexts.
11242 push(contextFiberStackCursor, fiber, fiber);
11243 push(contextStackCursor, nextRootContext, fiber);
11244 }
11245
11246 function popHostContainer(fiber) {
11247 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