(containerInfo, isAsync, hydrate)
| 7121 | |
| 7122 | |
| 7123 | function createFiberRoot(containerInfo, isAsync, hydrate) { |
| 7124 | // Cyclic construction. This cheats the type system right now because |
| 7125 | // stateNode is any. |
| 7126 | var uninitializedFiber = createHostRootFiber(isAsync); |
| 7127 | var root = { |
| 7128 | current: uninitializedFiber, |
| 7129 | containerInfo: containerInfo, |
| 7130 | pendingChildren: null, |
| 7131 | pendingCommitExpirationTime: NoWork, |
| 7132 | finishedWork: null, |
| 7133 | context: null, |
| 7134 | pendingContext: null, |
| 7135 | hydrate: hydrate, |
| 7136 | remainingExpirationTime: NoWork, |
| 7137 | firstBatch: null, |
| 7138 | nextScheduledRoot: null |
| 7139 | }; |
| 7140 | uninitializedFiber.stateNode = root; |
| 7141 | return root; |
| 7142 | } |
| 7143 | |
| 7144 | var onCommitFiberRoot = null; |
| 7145 | var onCommitFiberUnmount = null; |
no test coverage detected