(fiber, nextRootInstance)
| 11140 | } |
| 11141 | |
| 11142 | function pushHostContainer(fiber, nextRootInstance) { |
| 11143 | // Push current root instance onto the stack; |
| 11144 | // This allows us to reset root when portals are popped. |
| 11145 | push(rootInstanceStackCursor, nextRootInstance, fiber); |
| 11146 | |
| 11147 | var nextRootContext = getRootHostContext(nextRootInstance); |
| 11148 | |
| 11149 | // Track the context and the Fiber that provided it. |
| 11150 | // This enables us to pop only Fibers that provide unique contexts. |
| 11151 | push(contextFiberStackCursor, fiber, fiber); |
| 11152 | push(contextStackCursor, nextRootContext, fiber); |
| 11153 | } |
| 11154 | |
| 11155 | function popHostContainer(fiber) { |
| 11156 | pop(contextStackCursor, fiber); |
no test coverage detected