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

Function createHostRootFiber

lib/assets/react-source/development/react.js:27541–27560  ·  view source on GitHub ↗
(tag)

Source from the content-addressed store, hash-verified

27539 return workInProgress;
27540 }
27541 function createHostRootFiber(tag) {
27542 var mode;
27543
27544 if (tag === ConcurrentRoot) {
27545 mode = ConcurrentMode | BlockingMode | StrictMode;
27546 } else if (tag === BlockingRoot) {
27547 mode = BlockingMode | StrictMode;
27548 } else {
27549 mode = NoMode;
27550 }
27551
27552 if ( isDevToolsPresent) {
27553 // Always collect profile timings when DevTools are present.
27554 // This enables DevTools to start capturing timing at any point–
27555 // Without some nodes in the tree having empty base times.
27556 mode |= ProfileMode;
27557 }
27558
27559 return createFiber(HostRoot, null, null, mode);
27560 }
27561 function createFiberFromTypeAndProps(type, // React$ElementType
27562 key, pendingProps, owner, mode, expirationTime) {
27563 var fiber;

Callers 1

createFiberRootFunction · 0.85

Calls 1

createFiberFunction · 0.85

Tested by

no test coverage detected