|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|