(fiber, nextRootInstance)
| 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); |
no test coverage detected