MCPcopy Create free account
hub / github.com/reactjs/react-rails / createFiberRoot

Function createFiberRoot

lib/assets/react-source/development/react.js:27845–27855  ·  view source on GitHub ↗
(containerInfo, tag, hydrate, hydrationCallbacks)

Source from the content-addressed store, hash-verified

27843 }
27844
27845 function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
27846 var root = new FiberRootNode(containerInfo, tag, hydrate);
27847 // stateNode is any.
27848
27849
27850 var uninitializedFiber = createHostRootFiber(tag);
27851 root.current = uninitializedFiber;
27852 uninitializedFiber.stateNode = root;
27853 initializeUpdateQueue(uninitializedFiber);
27854 return root;
27855 }
27856 function isRootSuspendedAtTime(root, expirationTime) {
27857 var firstSuspendedTime = root.firstSuspendedTime;
27858 var lastSuspendedTime = root.lastSuspendedTime;

Callers 1

createContainerFunction · 0.85

Calls 2

createHostRootFiberFunction · 0.85
initializeUpdateQueueFunction · 0.85

Tested by

no test coverage detected