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

Function createFiberRoot

code/dependency-injection/public/app.js:7181–7200  ·  view source on GitHub ↗
(containerInfo, isAsync, hydrate)

Source from the content-addressed store, hash-verified

7179
7180
7181function createFiberRoot(containerInfo, isAsync, hydrate) {
7182 // Cyclic construction. This cheats the type system right now because
7183 // stateNode is any.
7184 var uninitializedFiber = createHostRootFiber(isAsync);
7185 var root = {
7186 current: uninitializedFiber,
7187 containerInfo: containerInfo,
7188 pendingChildren: null,
7189 pendingCommitExpirationTime: NoWork,
7190 finishedWork: null,
7191 context: null,
7192 pendingContext: null,
7193 hydrate: hydrate,
7194 remainingExpirationTime: NoWork,
7195 firstBatch: null,
7196 nextScheduledRoot: null
7197 };
7198 uninitializedFiber.stateNode = root;
7199 return root;
7200}
7201
7202var onCommitFiberRoot = null;
7203var onCommitFiberUnmount = null;

Callers 1

ReactFiberReconciler$1Function · 0.70

Calls 1

createHostRootFiberFunction · 0.70

Tested by

no test coverage detected