fix(runtime-core): stop tracking deps in setRef during unmount (#13210)

This commit is contained in:
dopamine 2025-05-01 17:56:42 +08:00 committed by GitHub
parent 5d166f3796
commit 016c472bd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -2098,7 +2098,9 @@ function baseCreateRenderer(
// unset ref
if (ref != null) {
pauseTracking()
setRef(ref, null, parentSuspense, vnode, true)
resetTracking()
}
// #6593 should clean memo cache when unmount