MCPcopy Create free account
hub / github.com/plotly/dash / createHostRootFiber

Function createHostRootFiber

dash/deps/react-dom@18.3.1.js:28347–28372  ·  view source on GitHub ↗
(tag, isStrictMode, concurrentUpdatesByDefaultOverride)

Source from the content-addressed store, hash-verified

28345 return workInProgress;
28346 }
28347 function createHostRootFiber(tag, isStrictMode, concurrentUpdatesByDefaultOverride) {
28348 var mode;
28349
28350 if (tag === ConcurrentRoot) {
28351 mode = ConcurrentMode;
28352
28353 if (isStrictMode === true) {
28354 mode |= StrictLegacyMode;
28355
28356 {
28357 mode |= StrictEffectsMode;
28358 }
28359 }
28360 } else {
28361 mode = NoMode;
28362 }
28363
28364 if ( isDevToolsPresent) {
28365 // Always collect profile timings when DevTools are present.
28366 // This enables DevTools to start capturing timing at any point–
28367 // Without some nodes in the tree having empty base times.
28368 mode |= ProfileMode;
28369 }
28370
28371 return createFiber(HostRoot, null, null, mode);
28372 }
28373 function createFiberFromTypeAndProps(type, // React$ElementType
28374 key, pendingProps, owner, mode, lanes) {
28375 var fiberTag = IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.

Callers 1

createFiberRootFunction · 0.70

Calls 1

createFiberFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…