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

Function pushHostContainer

code/one-direction-data-flow/public/app.js:11782–11793  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

11780 }
11781
11782 function pushHostContainer(fiber, nextRootInstance) {
11783 // Push current root instance onto the stack;
11784 // This allows us to reset root when portals are popped.
11785 push(rootInstanceStackCursor, nextRootInstance, fiber);
11786
11787 var nextRootContext = getRootHostContext(nextRootInstance);
11788
11789 // Track the context and the Fiber that provided it.
11790 // This enables us to pop only Fibers that provide unique contexts.
11791 push(contextFiberStackCursor, fiber, fiber);
11792 push(contextStackCursor, nextRootContext, fiber);
11793 }
11794
11795 function popHostContainer(fiber) {
11796 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