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

Function createFiberRoot

code/event-handlers/public/app.js:6418–6437  ·  view source on GitHub ↗
(containerInfo, isAsync, hydrate)

Source from the content-addressed store, hash-verified

6416
6417
6418function createFiberRoot(containerInfo, isAsync, hydrate) {
6419 // Cyclic construction. This cheats the type system right now because
6420 // stateNode is any.
6421 var uninitializedFiber = createHostRootFiber(isAsync);
6422 var root = {
6423 current: uninitializedFiber,
6424 containerInfo: containerInfo,
6425 pendingChildren: null,
6426 pendingCommitExpirationTime: NoWork,
6427 finishedWork: null,
6428 context: null,
6429 pendingContext: null,
6430 hydrate: hydrate,
6431 remainingExpirationTime: NoWork,
6432 firstBatch: null,
6433 nextScheduledRoot: null
6434 };
6435 uninitializedFiber.stateNode = root;
6436 return root;
6437}
6438
6439var onCommitFiberRoot = null;
6440var onCommitFiberUnmount = null;

Callers 1

ReactFiberReconciler$1Function · 0.70

Calls 1

createHostRootFiberFunction · 0.70

Tested by

no test coverage detected