From 6437c3d0c4e1f2ae5d243256f2ca3b6843860ab2 Mon Sep 17 00:00:00 2001 From: GrayLinTouchWorld <47765694+GrayLinTouchWorld@users.noreply.github.com> Date: Tue, 1 Mar 2022 16:59:08 +0800 Subject: [PATCH] Update priority.md --- docs/state/priority.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/state/priority.md b/docs/state/priority.md index 360c56a..d739c35 100644 --- a/docs/state/priority.md +++ b/docs/state/priority.md @@ -130,7 +130,7 @@ fiber.updateQueue = { }; ``` -我们可以看见,`u2`对应的更新执行了两次,相应的`render阶段`的生命周期勾子`componentWillXXX`也会触发两次。这也是为什么这些勾子会被标记为`unsafe_`。 +我们可以看见,`u1`对应的更新执行了两次,相应的`render阶段`的生命周期勾子`componentWillXXX`也会触发两次。这也是为什么这些勾子会被标记为`unsafe_`。 ## 如何保证状态正确