MCPcopy Create free account
hub / github.com/microsoft/SandDance / FiberRootNode

Function FiberRootNode

docs/external/js/react-dom.development.js:24257–24283  ·  view source on GitHub ↗
(containerInfo, tag, hydrate)

Source from the content-addressed store, hash-verified

24255 }
24256
24257 function FiberRootNode(containerInfo, tag, hydrate) {
24258 this.tag = tag;
24259 this.current = null;
24260 this.containerInfo = containerInfo;
24261 this.pendingChildren = null;
24262 this.pingCache = null;
24263 this.finishedExpirationTime = NoWork;
24264 this.finishedWork = null;
24265 this.timeoutHandle = noTimeout;
24266 this.context = null;
24267 this.pendingContext = null;
24268 this.hydrate = hydrate;
24269 this.callbackNode = null;
24270 this.callbackPriority = NoPriority;
24271 this.firstPendingTime = NoWork;
24272 this.firstSuspendedTime = NoWork;
24273 this.lastSuspendedTime = NoWork;
24274 this.nextKnownPendingLevel = NoWork;
24275 this.lastPingedTime = NoWork;
24276 this.lastExpiredTime = NoWork;
24277
24278 {
24279 this.interactionThreadID = unstable_getThreadID();
24280 this.memoizedInteractions = new Set();
24281 this.pendingInteractionMap = new Map();
24282 }
24283 }
24284
24285 function createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks) {
24286 var root = new FiberRootNode(containerInfo, tag, hydrate);

Callers

nothing calls this directly

Calls 1

unstable_getThreadIDFunction · 0.85

Tested by

no test coverage detected