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

Function pushHostContainer

code/new-context-api/public/app.js:11270–11281  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

11268 }
11269
11270 function pushHostContainer(fiber, nextRootInstance) {
11271 // Push current root instance onto the stack;
11272 // This allows us to reset root when portals are popped.
11273 push(rootInstanceStackCursor, nextRootInstance, fiber);
11274
11275 var nextRootContext = getRootHostContext(nextRootInstance);
11276
11277 // Track the context and the Fiber that provided it.
11278 // This enables us to pop only Fibers that provide unique contexts.
11279 push(contextFiberStackCursor, fiber, fiber);
11280 push(contextStackCursor, nextRootContext, fiber);
11281 }
11282
11283 function popHostContainer(fiber) {
11284 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