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

Function createFiberRoot

code/styling/public/app.js:7088–7107  ·  view source on GitHub ↗
(containerInfo, isAsync, hydrate)

Source from the content-addressed store, hash-verified

7086
7087
7088function createFiberRoot(containerInfo, isAsync, hydrate) {
7089 // Cyclic construction. This cheats the type system right now because
7090 // stateNode is any.
7091 var uninitializedFiber = createHostRootFiber(isAsync);
7092 var root = {
7093 current: uninitializedFiber,
7094 containerInfo: containerInfo,
7095 pendingChildren: null,
7096 pendingCommitExpirationTime: NoWork,
7097 finishedWork: null,
7098 context: null,
7099 pendingContext: null,
7100 hydrate: hydrate,
7101 remainingExpirationTime: NoWork,
7102 firstBatch: null,
7103 nextScheduledRoot: null
7104 };
7105 uninitializedFiber.stateNode = root;
7106 return root;
7107}
7108
7109var onCommitFiberRoot = null;
7110var onCommitFiberUnmount = null;

Callers 1

ReactFiberReconciler$1Function · 0.70

Calls 1

createHostRootFiberFunction · 0.70

Tested by

no test coverage detected