MCPcopy Index your code
hub / github.com/plotly/dash / createFiberRoot

Function createFiberRoot

dash/deps/react-dom@18.2.0.js:28666–28693  ·  view source on GitHub ↗
(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the
  // host config, but because they are passed in at runtime, we have to thread
  // them through the root constructor. Perhaps we should put them all into a
  // single type, like a DynamicHostConfig that is defined by the renderer.
  identifierPrefix, onRecoverableError, transitionCallbacks)

Source from the content-addressed store, hash-verified

28664 }
28665
28666 function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the
28667 // host config, but because they are passed in at runtime, we have to thread
28668 // them through the root constructor. Perhaps we should put them all into a
28669 // single type, like a DynamicHostConfig that is defined by the renderer.
28670 identifierPrefix, onRecoverableError, transitionCallbacks) {
28671 var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError);
28672 // stateNode is any.
28673
28674
28675 var uninitializedFiber = createHostRootFiber(tag, isStrictMode);
28676 root.current = uninitializedFiber;
28677 uninitializedFiber.stateNode = root;
28678
28679 {
28680 var _initialState = {
28681 element: initialChildren,
28682 isDehydrated: hydrate,
28683 cache: null,
28684 // not enabled yet
28685 transitions: null,
28686 pendingSuspenseBoundaries: null
28687 };
28688 uninitializedFiber.memoizedState = _initialState;
28689 }
28690
28691 initializeUpdateQueue(uninitializedFiber);
28692 return root;
28693 }
28694
28695 var ReactVersion = '18.2.0';
28696

Callers 2

createContainerFunction · 0.70
createHydrationContainerFunction · 0.70

Calls 2

createHostRootFiberFunction · 0.70
initializeUpdateQueueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…