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

Function pushHostContainer

code/event-handlers/public/app.js:11239–11250  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

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