(containerInfo, isAsync, hydrate)
| 7086 | |
| 7087 | |
| 7088 | function createFiberRoot(containerInfo, isAsync, hydrate) { |
| 7089 | // Cyclic construction. This cheats the type system right now because |
| 7090 | // stateNode is any. |
| 7091 | var uninitializedFiber = createHostRootFiber(isAsync); |
| 7092 | var root = { |
| 7093 | current: uninitializedFiber, |
| 7094 | containerInfo: containerInfo, |
| 7095 | pendingChildren: null, |
| 7096 | pendingCommitExpirationTime: NoWork, |
| 7097 | finishedWork: null, |
| 7098 | context: null, |
| 7099 | pendingContext: null, |
| 7100 | hydrate: hydrate, |
| 7101 | remainingExpirationTime: NoWork, |
| 7102 | firstBatch: null, |
| 7103 | nextScheduledRoot: null |
| 7104 | }; |
| 7105 | uninitializedFiber.stateNode = root; |
| 7106 | return root; |
| 7107 | } |
| 7108 | |
| 7109 | var onCommitFiberRoot = null; |
| 7110 | var onCommitFiberUnmount = null; |
no test coverage detected