From c117d9c257820481b85304db26ce5c77af5d050c Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 1 May 2023 12:21:10 +0800 Subject: [PATCH] fix(hmr): keep slots proxy mutable for hmr close #8188 --- packages/runtime-core/src/component.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 087e901354..684f028fd5 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -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 } })) ) -- 2.47.3