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

Function createFiberRoot

code/communication/public/app.js:7123–7142  ·  view source on GitHub ↗
(containerInfo, isAsync, hydrate)

Source from the content-addressed store, hash-verified

7121
7122
7123function 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
7144var onCommitFiberRoot = null;
7145var onCommitFiberUnmount = null;

Callers 1

ReactFiberReconciler$1Function · 0.70

Calls 1

createHostRootFiberFunction · 0.70

Tested by

no test coverage detected