MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / createFiberRoot

Function createFiberRoot

code/third-party/public/app.js:6321–6340  ·  view source on GitHub ↗
(containerInfo, isAsync, hydrate)

Source from the content-addressed store, hash-verified

6319
6320
6321function createFiberRoot(containerInfo, isAsync, hydrate) {
6322 // Cyclic construction. This cheats the type system right now because
6323 // stateNode is any.
6324 var uninitializedFiber = createHostRootFiber(isAsync);
6325 var root = {
6326 current: uninitializedFiber,
6327 containerInfo: containerInfo,
6328 pendingChildren: null,
6329 pendingCommitExpirationTime: NoWork,
6330 finishedWork: null,
6331 context: null,
6332 pendingContext: null,
6333 hydrate: hydrate,
6334 remainingExpirationTime: NoWork,
6335 firstBatch: null,
6336 nextScheduledRoot: null
6337 };
6338 uninitializedFiber.stateNode = root;
6339 return root;
6340}
6341
6342var onCommitFiberRoot = null;
6343var onCommitFiberUnmount = null;

Callers 1

ReactFiberReconciler$1Function · 0.70

Calls 1

createHostRootFiberFunction · 0.70

Tested by

no test coverage detected