Skip to content

Commit 016c472

Browse files
authored
fix(runtime-core): stop tracking deps in setRef during unmount (#13210)
1 parent 5d166f3 commit 016c472

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/runtime-core/src/renderer.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2098,7 +2098,9 @@ function baseCreateRenderer(
20982098

20992099
// unset ref
21002100
if (ref != null) {
2101+
pauseTracking()
21012102
setRef(ref, null, parentSuspense, vnode, true)
2103+
resetTracking()
21022104
}
21032105

21042106
// #6593 should clean memo cache when unmount

0 commit comments

Comments
 (0)