(containerInfo, isAsync, hydrate)
| 6319 | |
| 6320 | |
| 6321 | function createFiberRoot(containerInfo, isAsync, hydrate) { |
| 6322 | // Cyclic construction. This cheats the type system right now because |
| 6323 | // stateNode is any. |
| 6324 | var uninitializedFiber = createHostRootFiber(isAsync); |
| 6325 | var root = { |
| 6326 | current: uninitializedFiber, |
| 6327 | containerInfo: containerInfo, |
| 6328 | pendingChildren: null, |
| 6329 | pendingCommitExpirationTime: NoWork, |
| 6330 | finishedWork: null, |
| 6331 | context: null, |
| 6332 | pendingContext: null, |
| 6333 | hydrate: hydrate, |
| 6334 | remainingExpirationTime: NoWork, |
| 6335 | firstBatch: null, |
| 6336 | nextScheduledRoot: null |
| 6337 | }; |
| 6338 | uninitializedFiber.stateNode = root; |
| 6339 | return root; |
| 6340 | } |
| 6341 | |
| 6342 | var onCommitFiberRoot = null; |
| 6343 | var onCommitFiberUnmount = null; |
no test coverage detected