(containerInfo, isAsync, hydrate)
| 6416 | |
| 6417 | |
| 6418 | function createFiberRoot(containerInfo, isAsync, hydrate) { |
| 6419 | // Cyclic construction. This cheats the type system right now because |
| 6420 | // stateNode is any. |
| 6421 | var uninitializedFiber = createHostRootFiber(isAsync); |
| 6422 | var root = { |
| 6423 | current: uninitializedFiber, |
| 6424 | containerInfo: containerInfo, |
| 6425 | pendingChildren: null, |
| 6426 | pendingCommitExpirationTime: NoWork, |
| 6427 | finishedWork: null, |
| 6428 | context: null, |
| 6429 | pendingContext: null, |
| 6430 | hydrate: hydrate, |
| 6431 | remainingExpirationTime: NoWork, |
| 6432 | firstBatch: null, |
| 6433 | nextScheduledRoot: null |
| 6434 | }; |
| 6435 | uninitializedFiber.stateNode = root; |
| 6436 | return root; |
| 6437 | } |
| 6438 | |
| 6439 | var onCommitFiberRoot = null; |
| 6440 | var onCommitFiberUnmount = null; |
no test coverage detected