(fiber)
| 12024 | } |
| 12025 | |
| 12026 | function pushHostContext(fiber) { |
| 12027 | var rootInstance = requiredContext(rootInstanceStackCursor.current); |
| 12028 | var context = requiredContext(contextStackCursor.current); |
| 12029 | var nextContext = getChildHostContext(context, fiber.type, rootInstance); |
| 12030 | |
| 12031 | // Don't push this Fiber's context unless it's unique. |
| 12032 | if (context === nextContext) { |
| 12033 | return; |
| 12034 | } |
| 12035 | |
| 12036 | // Track the context and the Fiber that provided it. |
| 12037 | // This enables us to pop only Fibers that provide unique contexts. |
| 12038 | push(contextFiberStackCursor, fiber, fiber); |
| 12039 | push(contextStackCursor, nextContext, fiber); |
| 12040 | } |
| 12041 | |
| 12042 | function popHostContext(fiber) { |
| 12043 | // Do not pop unless this Fiber provided the current context. |
no test coverage detected