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

Function createFiberRoot

code/redux/public/app.js:7339–7358  ·  view source on GitHub ↗
(containerInfo, isAsync, hydrate)

Source from the content-addressed store, hash-verified

7337
7338
7339function createFiberRoot(containerInfo, isAsync, hydrate) {
7340 // Cyclic construction. This cheats the type system right now because
7341 // stateNode is any.
7342 var uninitializedFiber = createHostRootFiber(isAsync);
7343 var root = {
7344 current: uninitializedFiber,
7345 containerInfo: containerInfo,
7346 pendingChildren: null,
7347 pendingCommitExpirationTime: NoWork,
7348 finishedWork: null,
7349 context: null,
7350 pendingContext: null,
7351 hydrate: hydrate,
7352 remainingExpirationTime: NoWork,
7353 firstBatch: null,
7354 nextScheduledRoot: null
7355 };
7356 uninitializedFiber.stateNode = root;
7357 return root;
7358}
7359
7360var onCommitFiberRoot = null;
7361var onCommitFiberUnmount = null;

Callers 1

ReactFiberReconciler$1Function · 0.70

Calls 1

createHostRootFiberFunction · 0.70

Tested by

no test coverage detected