From a3ffb58188e1de352aa3a1618548ae9baded2b69 Mon Sep 17 00:00:00 2001 From: YuJian Date: Mon, 9 May 2022 16:28:24 +0800 Subject: [PATCH] vault backup: 2022-05-09 16:28:24 --- .../React 的深入探索 - createWorkInProgress.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md b/React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md index ee6ef20..addcc9f 100644 --- a/React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md +++ b/React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md @@ -61,15 +61,15 @@ switch (workInProgress.tag) { case FunctionComponent: case SimpleMemoComponent: workInProgress.type = resolveFunctionForHotReloading(current.type); - break; + break; case ClassComponent: workInProgress.type = resolveClassForHotReloading(current.type); break; -case ForwardRef: -workInProgress.type = resolveForwardRefForHotReloading(current.type); -break; + case ForwardRef: + workInProgress.type = resolveForwardRefForHotReloading(current.type); + break; } ```