(containerInfo, isAsync, hydrate)
| 6447 | |
| 6448 | |
| 6449 | function createFiberRoot(containerInfo, isAsync, hydrate) { |
| 6450 | // Cyclic construction. This cheats the type system right now because |
| 6451 | // stateNode is any. |
| 6452 | var uninitializedFiber = createHostRootFiber(isAsync); |
| 6453 | var root = { |
| 6454 | current: uninitializedFiber, |
| 6455 | containerInfo: containerInfo, |
| 6456 | pendingChildren: null, |
| 6457 | pendingCommitExpirationTime: NoWork, |
| 6458 | finishedWork: null, |
| 6459 | context: null, |
| 6460 | pendingContext: null, |
| 6461 | hydrate: hydrate, |
| 6462 | remainingExpirationTime: NoWork, |
| 6463 | firstBatch: null, |
| 6464 | nextScheduledRoot: null |
| 6465 | }; |
| 6466 | uninitializedFiber.stateNode = root; |
| 6467 | return root; |
| 6468 | } |
| 6469 | |
| 6470 | var onCommitFiberRoot = null; |
| 6471 | var onCommitFiberUnmount = null; |
no test coverage detected