(fiber, nextRootInstance)
| 12000 | } |
| 12001 | |
| 12002 | function pushHostContainer(fiber, nextRootInstance) { |
| 12003 | // Push current root instance onto the stack; |
| 12004 | // This allows us to reset root when portals are popped. |
| 12005 | push(rootInstanceStackCursor, nextRootInstance, fiber); |
| 12006 | |
| 12007 | var nextRootContext = getRootHostContext(nextRootInstance); |
| 12008 | |
| 12009 | // Track the context and the Fiber that provided it. |
| 12010 | // This enables us to pop only Fibers that provide unique contexts. |
| 12011 | push(contextFiberStackCursor, fiber, fiber); |
| 12012 | push(contextStackCursor, nextRootContext, fiber); |
| 12013 | } |
| 12014 | |
| 12015 | function popHostContainer(fiber) { |
| 12016 | pop(contextStackCursor, fiber); |
no test coverage detected