-
Notifications
You must be signed in to change notification settings - Fork 0
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
调和 #6
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这部分先暂停。。最近事情有点多
------------------------------------break------------------------------------
调度完之后是渲染部分,渲染部分又可以分为调和(renderRoot)和提交(completeRoot)两个阶段。
先看看调和吧,主要是renderRoot这个阶段,我发现这个函数在两个文件中都存在了,分别是:
具体有啥区别。。。?估计是保留了一下原先的版本?先看old的吧
循环寻找工作单元的这个流程其实很简单,就是自顶向下再向上的一个循环。
beginWork就更长了,主要是根据不同的workInProgress来进行不同的处理方式
比如class组件,比如文本节点,比如函数式组件,有大量的switch case操作。
The text was updated successfully, but these errors were encountered: