From b8aa7da19757451c41e4099fb60bb33026a74452 Mon Sep 17 00:00:00 2001 From: sea2333 <34941245+sea2333@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=9C=80=E7=BB=88effectList?= =?UTF-8?q?=E9=93=BE=E8=A1=A8=E4=BE=8B=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上面描述中的lastEffect属性没有在最终effectList链表例子中展示出来,会让读者感到疑惑 --- docs/process/completeWork.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/process/completeWork.md b/docs/process/completeWork.md index 6c35066..533fa29 100644 --- a/docs/process/completeWork.md +++ b/docs/process/completeWork.md @@ -179,7 +179,7 @@ if ( ```js nextEffect nextEffect -rootFiber.firstEffect -----------> fiber -----------> fiber +rootFiber.firstEffect -----------> fiber -----------> fiber <----------- rootFiber.lastEffect ``` 这样,在`commit阶段`只需要遍历`effectList`就能执行所有`effect`了。