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