MCPcopy Index your code
hub / github.com/microsoft/SandDance / createFiberRoot

Function createFiberRoot

docs/external/js/react-dom.development.js:24285–24295  ·  view source on GitHub ↗
(containerInfo, tag, hydrate, hydrationCallbacks)

Source from the content-addressed store, hash-verified

24283 }
24284
24285 function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
24286 var root = new FiberRootNode(containerInfo, tag, hydrate);
24287 // stateNode is any.
24288
24289
24290 var uninitializedFiber = createHostRootFiber(tag);
24291 root.current = uninitializedFiber;
24292 uninitializedFiber.stateNode = root;
24293 initializeUpdateQueue(uninitializedFiber);
24294 return root;
24295 }
24296 function isRootSuspendedAtTime(root, expirationTime) {
24297 var firstSuspendedTime = root.firstSuspendedTime;
24298 var lastSuspendedTime = root.lastSuspendedTime;

Callers 1

createContainerFunction · 0.85

Calls 2

createHostRootFiberFunction · 0.85
initializeUpdateQueueFunction · 0.85

Tested by

no test coverage detected