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

Function createFiberRoot

code/composition/public/app.js:7226–7245  ·  view source on GitHub ↗
(containerInfo, isAsync, hydrate)

Source from the content-addressed store, hash-verified

7224
7225
7226function createFiberRoot(containerInfo, isAsync, hydrate) {
7227 // Cyclic construction. This cheats the type system right now because
7228 // stateNode is any.
7229 var uninitializedFiber = createHostRootFiber(isAsync);
7230 var root = {
7231 current: uninitializedFiber,
7232 containerInfo: containerInfo,
7233 pendingChildren: null,
7234 pendingCommitExpirationTime: NoWork,
7235 finishedWork: null,
7236 context: null,
7237 pendingContext: null,
7238 hydrate: hydrate,
7239 remainingExpirationTime: NoWork,
7240 firstBatch: null,
7241 nextScheduledRoot: null
7242 };
7243 uninitializedFiber.stateNode = root;
7244 return root;
7245}
7246
7247var onCommitFiberRoot = null;
7248var onCommitFiberUnmount = null;

Callers 1

ReactFiberReconciler$1Function · 0.70

Calls 1

createHostRootFiberFunction · 0.70

Tested by

no test coverage detected