认识
2023年12月19日
一、认识
二、细节
export class FiberRootNode {
constructor(container, hostRootFiber) {
this.container = container;
this.current = hostRootFiber;
hostRootFiber.stateNode = this;
this.pingCache = null;
this.finishedWork = null;
this.callbackNode = null;
this.finishedLane = NoLane;
this.pingdLanes = NoLanes;
this.pendingLanes = NoLanes;
this.suspendedLanes = NoLanes;
this.callbackPriority = NoLane;
this.pendingPassiveEffects = {
unmount: [],
update: []
};
}
}