Skip to content

Commit c117d9c

Browse files
committed
fix(hmr): keep slots proxy mutable for hmr
close #8188
1 parent 4576548 commit c117d9c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/runtime-core/src/component.ts

-8
Original file line numberDiff line numberDiff line change
@@ -971,14 +971,6 @@ function getSlotsProxy(instance: ComponentInternalInstance): Slots {
971971
get(target, key: string) {
972972
track(instance, TrackOpTypes.GET, '$slots')
973973
return target[key]
974-
},
975-
set() {
976-
warn(`setupContext.slots is readonly.`)
977-
return false
978-
},
979-
deleteProperty() {
980-
warn(`setupContext.slots is readonly.`)
981-
return false
982974
}
983975
}))
984976
)

0 commit comments

Comments
 (0)