MCPcopy Index your code
hub / github.com/caseywebdev/react-list / createFiberRoot

Function createFiberRoot

docs/index.js:17867–17907  ·  view source on GitHub ↗
(
  containerInfo,
  tag,
  hydrate,
  initialChildren,
  hydrationCallbacks,
  isStrictMode,
  identifierPrefix,
  onUncaughtError,
  onCaughtError,
  onRecoverableError,
  transitionCallbacks,
  formState
)

Source from the content-addressed store, hash-verified

17865 this.incompleteTransitions = new Map();
17866}
17867function createFiberRoot(
17868 containerInfo,
17869 tag,
17870 hydrate,
17871 initialChildren,
17872 hydrationCallbacks,
17873 isStrictMode,
17874 identifierPrefix,
17875 onUncaughtError,
17876 onCaughtError,
17877 onRecoverableError,
17878 transitionCallbacks,
17879 formState
17880) {
17881 containerInfo = new FiberRootNode(
17882 containerInfo,
17883 tag,
17884 hydrate,
17885 identifierPrefix,
17886 onUncaughtError,
17887 onCaughtError,
17888 onRecoverableError,
17889 formState
17890 );
17891 tag = 1;
17892 !0 === isStrictMode && (tag |= 24);
17893 isStrictMode = createFiberImplClass(3, null, null, tag);
17894 containerInfo.current = isStrictMode;
17895 isStrictMode.stateNode = containerInfo;
17896 tag = createCache();
17897 tag.refCount++;
17898 containerInfo.pooledCache = tag;
17899 tag.refCount++;
17900 isStrictMode.memoizedState = {
17901 element: initialChildren,
17902 isDehydrated: hydrate,
17903 cache: tag
17904 };
17905 initializeUpdateQueue(isStrictMode);
17906 return containerInfo;
17907}
17908function getContextForSubtree(parentComponent) {
17909 if (!parentComponent) return emptyContextObject;
17910 parentComponent = emptyContextObject;

Callers 1

index.jsFile · 0.85

Calls 5

createFiberImplClassFunction · 0.85
createCacheFunction · 0.85
initializeUpdateQueueFunction · 0.85
createFiberFunction · 0.85
retainCacheFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…