Explorar o código

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

dopamine hai 1 ano
pai
achega
016c472bd2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      packages/runtime-core/src/renderer.ts

+ 2 - 0
packages/runtime-core/src/renderer.ts

@@ -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