From: Evan You Date: Mon, 1 May 2023 04:21:10 +0000 (+0800) Subject: fix(hmr): keep slots proxy mutable for hmr X-Git-Tag: v3.3.0-beta.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c117d9c257820481b85304db26ce5c77af5d050c;p=thirdparty%2Fvuejs%2Fcore.git fix(hmr): keep slots proxy mutable for hmr close #8188 --- 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 } })) )