Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fiber树构造(对比更新) -> 过程图解 -> performUnitOfWork第 4 次调用(执行beginWork和completeUnitOfWork) #107

Open
Xi-yu opened this issue Feb 27, 2023 · 0 comments

Comments

@Xi-yu
Copy link

Xi-yu commented Feb 27, 2023

【beginWork执行过程: 调用updateHostComponent】这里的逻辑是不是错误的呢?
根据上文的逻辑,这里current!==null,应该对比优先级判断当前fiber节点不需要更新
接着调用bailoutOnAlreadyFinishedWork函数,继续判断子节点是否需要更新
!includesSomeLane(renderLane, workInProgress.childLanes)返回true,子节点不需要更新,返回null
进入completeUnitOfWork函数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant