(containerInfo, isAsync, hydrate)
| 7337 | |
| 7338 | |
| 7339 | function createFiberRoot(containerInfo, isAsync, hydrate) { |
| 7340 | // Cyclic construction. This cheats the type system right now because |
| 7341 | // stateNode is any. |
| 7342 | var uninitializedFiber = createHostRootFiber(isAsync); |
| 7343 | var root = { |
| 7344 | current: uninitializedFiber, |
| 7345 | containerInfo: containerInfo, |
| 7346 | pendingChildren: null, |
| 7347 | pendingCommitExpirationTime: NoWork, |
| 7348 | finishedWork: null, |
| 7349 | context: null, |
| 7350 | pendingContext: null, |
| 7351 | hydrate: hydrate, |
| 7352 | remainingExpirationTime: NoWork, |
| 7353 | firstBatch: null, |
| 7354 | nextScheduledRoot: null |
| 7355 | }; |
| 7356 | uninitializedFiber.stateNode = root; |
| 7357 | return root; |
| 7358 | } |
| 7359 | |
| 7360 | var onCommitFiberRoot = null; |
| 7361 | var onCommitFiberUnmount = null; |
no test coverage detected