chore: remove unnecessary wrap

This commit is contained in:
Evan You 2020-08-14 09:52:30 -04:00
parent caccec3f78
commit 86a4f2a6b3

View File

@ -311,9 +311,7 @@ export const setRef = (
if (isString(oldRef)) { if (isString(oldRef)) {
refs[oldRef] = null refs[oldRef] = null
if (hasOwn(setupState, oldRef)) { if (hasOwn(setupState, oldRef)) {
queuePostRenderEffect(() => {
setupState[oldRef] = null setupState[oldRef] = null
}, parentSuspense)
} }
} else if (isRef(oldRef)) { } else if (isRef(oldRef)) {
oldRef.value = null oldRef.value = null