(containerInfo, isAsync, hydrate)
| 7179 | |
| 7180 | |
| 7181 | function createFiberRoot(containerInfo, isAsync, hydrate) { |
| 7182 | // Cyclic construction. This cheats the type system right now because |
| 7183 | // stateNode is any. |
| 7184 | var uninitializedFiber = createHostRootFiber(isAsync); |
| 7185 | var root = { |
| 7186 | current: uninitializedFiber, |
| 7187 | containerInfo: containerInfo, |
| 7188 | pendingChildren: null, |
| 7189 | pendingCommitExpirationTime: NoWork, |
| 7190 | finishedWork: null, |
| 7191 | context: null, |
| 7192 | pendingContext: null, |
| 7193 | hydrate: hydrate, |
| 7194 | remainingExpirationTime: NoWork, |
| 7195 | firstBatch: null, |
| 7196 | nextScheduledRoot: null |
| 7197 | }; |
| 7198 | uninitializedFiber.stateNode = root; |
| 7199 | return root; |
| 7200 | } |
| 7201 | |
| 7202 | var onCommitFiberRoot = null; |
| 7203 | var onCommitFiberUnmount = null; |
no test coverage detected