(fiber, nextRootInstance)
| 12045 | } |
| 12046 | |
| 12047 | function pushHostContainer(fiber, nextRootInstance) { |
| 12048 | // Push current root instance onto the stack; |
| 12049 | // This allows us to reset root when portals are popped. |
| 12050 | push(rootInstanceStackCursor, nextRootInstance, fiber); |
| 12051 | |
| 12052 | var nextRootContext = getRootHostContext(nextRootInstance); |
| 12053 | |
| 12054 | // Track the context and the Fiber that provided it. |
| 12055 | // This enables us to pop only Fibers that provide unique contexts. |
| 12056 | push(contextFiberStackCursor, fiber, fiber); |
| 12057 | push(contextStackCursor, nextRootContext, fiber); |
| 12058 | } |
| 12059 | |
| 12060 | function popHostContainer(fiber) { |
| 12061 | pop(contextStackCursor, fiber); |
no test coverage detected