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

rootFiber 改为 fiberRootNode #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/process/beginWork.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function beginWork(
- workInProgress:当前组件对应的`Fiber节点`
- renderLanes:优先级相关,在讲解`Scheduler`时再讲解

从[双缓存机制一节](./doubleBuffer.html)我们知道,除[`rootFiber`](./doubleBuffer.md#mount%E6%97%B6)以外, 组件`mount`时,由于是首次渲染,是不存在当前组件对应的`Fiber节点`在上一次更新时的`Fiber节点`,即`mount`时`current === null`。
从[双缓存机制一节](./doubleBuffer.html)我们知道,除[`fiberRootNode`](./doubleBuffer.md#mount%E6%97%B6)以外, 组件`mount`时,由于是首次渲染,是不存在当前组件对应的`Fiber节点`在上一次更新时的`Fiber节点`,即`mount`时`current === null`。

组件`update`时,由于之前已经`mount`过,所以`current !== null`。

Expand Down