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

Function pushHostContext

code/redux/public/app.js:12184–12198  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

12182 }
12183
12184 function pushHostContext(fiber) {
12185 var rootInstance = requiredContext(rootInstanceStackCursor.current);
12186 var context = requiredContext(contextStackCursor.current);
12187 var nextContext = getChildHostContext(context, fiber.type, rootInstance);
12188
12189 // Don't push this Fiber's context unless it's unique.
12190 if (context === nextContext) {
12191 return;
12192 }
12193
12194 // Track the context and the Fiber that provided it.
12195 // This enables us to pop only Fibers that provide unique contexts.
12196 push(contextFiberStackCursor, fiber, fiber);
12197 push(contextStackCursor, nextContext, fiber);
12198 }
12199
12200 function popHostContext(fiber) {
12201 // Do not pop unless this Fiber provided the current context.

Callers 1

updateHostComponentFunction · 0.70

Calls 2

requiredContextFunction · 0.70
pushFunction · 0.70

Tested by

no test coverage detected