فهرست منبع

fix(runtime-core): use __vapor instead of vapor to identify Vapor components (#13652)

zhiyuanzmj 11 ماه پیش
والد
کامیت
ad21b1b7e9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/runtime-core/src/hmr.ts

+ 1 - 1
packages/runtime-core/src/hmr.ts

@@ -119,7 +119,7 @@ function reload(id: string, newComp: HMRComponent): void {
   // create a snapshot which avoids the set being mutated during updates
   const instances = [...record.instances]
 
-  if (newComp.vapor) {
+  if (newComp.__vapor) {
     for (const instance of instances) {
       instance.hmrReload!(newComp)
     }