Skip to content

Commit

Permalink
fix(hmr): keep slots proxy mutable for hmr
Browse files Browse the repository at this point in the history
close #8188
  • Loading branch information
yyx990803 committed May 1, 2023
1 parent 4576548 commit c117d9c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/runtime-core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}))
)
Expand Down

0 comments on commit c117d9c

Please sign in to comment.