MCPcopy Create free account
hub / github.com/microsoft/SandDance / createHostRootFiber

Function createHostRootFiber

docs/external/js/react-dom.development.js:23981–24000  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

23979 return workInProgress;
23980 }
23981 function createHostRootFiber(tag) {
23982 var mode;
23983
23984 if (tag === ConcurrentRoot) {
23985 mode = ConcurrentMode | BlockingMode | StrictMode;
23986 } else if (tag === BlockingRoot) {
23987 mode = BlockingMode | StrictMode;
23988 } else {
23989 mode = NoMode;
23990 }
23991
23992 if ( isDevToolsPresent) {
23993 // Always collect profile timings when DevTools are present.
23994 // This enables DevTools to start capturing timing at any point–
23995 // Without some nodes in the tree having empty base times.
23996 mode |= ProfileMode;
23997 }
23998
23999 return createFiber(HostRoot, null, null, mode);
24000 }
24001 function createFiberFromTypeAndProps(type, // React$ElementType
24002 key, pendingProps, owner, mode, expirationTime) {
24003 var fiber;

Callers 1

createFiberRootFunction · 0.85

Calls 1

createFiberFunction · 0.85

Tested by

no test coverage detected