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

Update fibertree-prepare.md #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

topyangwang
Copy link

根据新fiber节点和旧fiber节点的对比,构建新fiber树。

根据新fiber节点和旧fiber节点的对比,构建新fiber树。
@7kms
Copy link
Owner

7kms commented Aug 18, 2022

对比是在创建之前发生的

新的fiber创建之前,代表新fiberreactElement对象需要和旧fiber进行对比。

如果可以复用,这时候就不用创建了。反之不能复用,就根据reactElement对象的描述,去创建一个新的fiber

@7kms
Copy link
Owner

7kms commented Aug 18, 2022

所以应该不用改哈?

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

Successfully merging this pull request may close these issues.

None yet

2 participants