mirror of https://github.com/vuejs/core.git
fix(runtime-core): stop tracking deps in setRef during unmount (#13210)
This commit is contained in:
parent
5d166f3796
commit
016c472bd2
|
@ -2098,7 +2098,9 @@ function baseCreateRenderer(
|
||||||
|
|
||||||
// unset ref
|
// unset ref
|
||||||
if (ref != null) {
|
if (ref != null) {
|
||||||
|
pauseTracking()
|
||||||
setRef(ref, null, parentSuspense, vnode, true)
|
setRef(ref, null, parentSuspense, vnode, true)
|
||||||
|
resetTracking()
|
||||||
}
|
}
|
||||||
|
|
||||||
// #6593 should clean memo cache when unmount
|
// #6593 should clean memo cache when unmount
|
||||||
|
|
Loading…
Reference in New Issue