(fiber, nextRootInstance)
| 11907 | } |
| 11908 | |
| 11909 | function pushHostContainer(fiber, nextRootInstance) { |
| 11910 | // Push current root instance onto the stack; |
| 11911 | // This allows us to reset root when portals are popped. |
| 11912 | push(rootInstanceStackCursor, nextRootInstance, fiber); |
| 11913 | |
| 11914 | var nextRootContext = getRootHostContext(nextRootInstance); |
| 11915 | |
| 11916 | // Track the context and the Fiber that provided it. |
| 11917 | // This enables us to pop only Fibers that provide unique contexts. |
| 11918 | push(contextFiberStackCursor, fiber, fiber); |
| 11919 | push(contextStackCursor, nextRootContext, fiber); |
| 11920 | } |
| 11921 | |
| 11922 | function popHostContainer(fiber) { |
| 11923 | pop(contextStackCursor, fiber); |
no test coverage detected