Skip to content

Commit 86a4f2a

Browse files
committed
chore: remove unnecessary wrap
1 parent caccec3 commit 86a4f2a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/runtime-core/src/renderer.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,7 @@ export const setRef = (
311311
if (isString(oldRef)) {
312312
refs[oldRef] = null
313313
if (hasOwn(setupState, oldRef)) {
314-
queuePostRenderEffect(() => {
315-
setupState[oldRef] = null
316-
}, parentSuspense)
314+
setupState[oldRef] = null
317315
}
318316
} else if (isRef(oldRef)) {
319317
oldRef.value = null

0 commit comments

Comments
 (0)