fix(hmr): keep slots proxy mutable for hmr

close #8188
This commit is contained in:
Evan You 2023-05-01 12:21:10 +08:00
parent 45765488d4
commit c117d9c257
1 changed files with 0 additions and 8 deletions

View File

@ -971,14 +971,6 @@ function getSlotsProxy(instance: ComponentInternalInstance): Slots {
get(target, key: string) {
track(instance, TrackOpTypes.GET, '$slots')
return target[key]
},
set() {
warn(`setupContext.slots is readonly.`)
return false
},
deleteProperty() {
warn(`setupContext.slots is readonly.`)
return false
}
}))
)