From 86a4f2a6b3c5f96d74e92f1cddab8a20674c6ed0 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 14 Aug 2020 09:52:30 -0400 Subject: [PATCH] chore: remove unnecessary wrap --- packages/runtime-core/src/renderer.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 4d224e40..48336ebb 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -311,9 +311,7 @@ export const setRef = ( if (isString(oldRef)) { refs[oldRef] = null if (hasOwn(setupState, oldRef)) { - queuePostRenderEffect(() => { - setupState[oldRef] = null - }, parentSuspense) + setupState[oldRef] = null } } else if (isRef(oldRef)) { oldRef.value = null