1
0
Fork 0
Browse Source

vault backup: 2022-05-09 16:28:24

master
YuJian 3 years ago
parent
commit
a3ffb58188
  1. 8
      React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md

8
React 的源码深入/React 的流程解析 - Fiber 递归/React 的深入探索 - createWorkInProgress.md

@ -61,15 +61,15 @@ switch (workInProgress.tag) {
case FunctionComponent: case FunctionComponent:
case SimpleMemoComponent: case SimpleMemoComponent:
workInProgress.type = resolveFunctionForHotReloading(current.type); workInProgress.type = resolveFunctionForHotReloading(current.type);
break; break;
case ClassComponent: case ClassComponent:
workInProgress.type = resolveClassForHotReloading(current.type); workInProgress.type = resolveClassForHotReloading(current.type);
break; break;
case ForwardRef: case ForwardRef:
workInProgress.type = resolveForwardRefForHotReloading(current.type); workInProgress.type = resolveForwardRefForHotReloading(current.type);
break; break;
} }
``` ```

Loading…
Cancel
Save