跳到主要内容

认识

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: []
};
}
}