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

Function pushHostContainer

code/redux/public/app.js:12160–12171  ·  view source on GitHub ↗
(fiber, nextRootInstance)

Source from the content-addressed store, hash-verified

12158 }
12159
12160 function pushHostContainer(fiber, nextRootInstance) {
12161 // Push current root instance onto the stack;
12162 // This allows us to reset root when portals are popped.
12163 push(rootInstanceStackCursor, nextRootInstance, fiber);
12164
12165 var nextRootContext = getRootHostContext(nextRootInstance);
12166
12167 // Track the context and the Fiber that provided it.
12168 // This enables us to pop only Fibers that provide unique contexts.
12169 push(contextFiberStackCursor, fiber, fiber);
12170 push(contextStackCursor, nextRootContext, fiber);
12171 }
12172
12173 function popHostContainer(fiber) {
12174 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