(fiber, nextRootInstance)
| 11780 | } |
| 11781 | |
| 11782 | function pushHostContainer(fiber, nextRootInstance) { |
| 11783 | // Push current root instance onto the stack; |
| 11784 | // This allows us to reset root when portals are popped. |
| 11785 | push(rootInstanceStackCursor, nextRootInstance, fiber); |
| 11786 | |
| 11787 | var nextRootContext = getRootHostContext(nextRootInstance); |
| 11788 | |
| 11789 | // Track the context and the Fiber that provided it. |
| 11790 | // This enables us to pop only Fibers that provide unique contexts. |
| 11791 | push(contextFiberStackCursor, fiber, fiber); |
| 11792 | push(contextStackCursor, nextRootContext, fiber); |
| 11793 | } |
| 11794 | |
| 11795 | function popHostContainer(fiber) { |
| 11796 | pop(contextStackCursor, fiber); |
no test coverage detected