(containerInfo, isAsync, hydrate)
| 7224 | |
| 7225 | |
| 7226 | function createFiberRoot(containerInfo, isAsync, hydrate) { |
| 7227 | // Cyclic construction. This cheats the type system right now because |
| 7228 | // stateNode is any. |
| 7229 | var uninitializedFiber = createHostRootFiber(isAsync); |
| 7230 | var root = { |
| 7231 | current: uninitializedFiber, |
| 7232 | containerInfo: containerInfo, |
| 7233 | pendingChildren: null, |
| 7234 | pendingCommitExpirationTime: NoWork, |
| 7235 | finishedWork: null, |
| 7236 | context: null, |
| 7237 | pendingContext: null, |
| 7238 | hydrate: hydrate, |
| 7239 | remainingExpirationTime: NoWork, |
| 7240 | firstBatch: null, |
| 7241 | nextScheduledRoot: null |
| 7242 | }; |
| 7243 | uninitializedFiber.stateNode = root; |
| 7244 | return root; |
| 7245 | } |
| 7246 | |
| 7247 | var onCommitFiberRoot = null; |
| 7248 | var onCommitFiberUnmount = null; |
no test coverage detected