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

This commit is contained in:
zhiyuanzmj 2025-07-18 15:26:05 +08:00 committed by GitHub
parent d1f2915cfe
commit ad21b1b7e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}