(fiber, nextRootInstance)
| 11942 | } |
| 11943 | |
| 11944 | function pushHostContainer(fiber, nextRootInstance) { |
| 11945 | // Push current root instance onto the stack; |
| 11946 | // This allows us to reset root when portals are popped. |
| 11947 | push(rootInstanceStackCursor, nextRootInstance, fiber); |
| 11948 | |
| 11949 | var nextRootContext = getRootHostContext(nextRootInstance); |
| 11950 | |
| 11951 | // Track the context and the Fiber that provided it. |
| 11952 | // This enables us to pop only Fibers that provide unique contexts. |
| 11953 | push(contextFiberStackCursor, fiber, fiber); |
| 11954 | push(contextStackCursor, nextRootContext, fiber); |
| 11955 | } |
| 11956 | |
| 11957 | function popHostContainer(fiber) { |
| 11958 | pop(contextStackCursor, fiber); |
no test coverage detected