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

Function createFiberRoot

dash/deps/react-dom@18.3.1.js:28705–28732  ·  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

28703 }
28704
28705 function createFiberRoot(containerInfo, tag, hydrate, initialChildren, hydrationCallbacks, isStrictMode, concurrentUpdatesByDefaultOverride, // TODO: We have several of these arguments that are conceptually part of the
28706 // host config, but because they are passed in at runtime, we have to thread
28707 // them through the root constructor. Perhaps we should put them all into a
28708 // single type, like a DynamicHostConfig that is defined by the renderer.
28709 identifierPrefix, onRecoverableError, transitionCallbacks) {
28710 var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix, onRecoverableError);
28711 // stateNode is any.
28712
28713
28714 var uninitializedFiber = createHostRootFiber(tag, isStrictMode);
28715 root.current = uninitializedFiber;
28716 uninitializedFiber.stateNode = root;
28717
28718 {
28719 var _initialState = {
28720 element: initialChildren,
28721 isDehydrated: hydrate,
28722 cache: null,
28723 // not enabled yet
28724 transitions: null,
28725 pendingSuspenseBoundaries: null
28726 };
28727 uninitializedFiber.memoizedState = _initialState;
28728 }
28729
28730 initializeUpdateQueue(uninitializedFiber);
28731 return root;
28732 }
28733
28734 var ReactVersion = '18.3.1';
28735

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…