Kaynağa Gözat

chore(runtime-vapor): simplify HMR unregistering condition in unmountComponent

daiwei 4 ay önce
ebeveyn
işleme
e1646844c4
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      packages/runtime-vapor/src/component.ts

+ 1 - 1
packages/runtime-vapor/src/component.ts

@@ -920,7 +920,7 @@ export function unmountComponent(
   }
 
   if (instance.isMounted && !instance.isUnmounted) {
-    if (__DEV__ && instance.type.__hmrId) {
+    if (__DEV__) {
       unregisterHMR(instance)
     }
     if (instance.bum) {