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)) {
refs[oldRef] = null
if (hasOwn(setupState, oldRef)) {
queuePostRenderEffect(() => {
setupState[oldRef] = null
}, parentSuspense)
setupState[oldRef] = null
}
} else if (isRef(oldRef)) {
oldRef.value = null