(fiber)
| 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. |
no test coverage detected