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

render阶段,beginWork和completeWork #40

Open
qingwu-aby opened this issue Oct 7, 2020 · 1 comment
Open

render阶段,beginWork和completeWork #40

qingwu-aby opened this issue Oct 7, 2020 · 1 comment

Comments

@qingwu-aby
Copy link

qingwu-aby commented Oct 7, 2020

在最新的master代码中,三个月之前有一次更新,移除了effectTag

const deletions = returnFiber.deletions;
    if (deletions === null) {
      returnFiber.deletions = [childToDelete];
      returnFiber.flags |= Deletion;
    } else {
      deletions.push(childToDelete);
    }

使用了flags进行判断

@BetaSu
Copy link
Owner

BetaSu commented Oct 23, 2020

感谢反馈。

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

2 participants