File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/vue-jsx-vapor/src/core Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ import {
3
3
insert ,
4
4
isFragment ,
5
5
isVaporComponent ,
6
+ pauseTracking ,
6
7
remove ,
7
8
renderEffect ,
9
+ resetTracking ,
8
10
VaporFragment ,
9
11
type Block ,
10
12
} from 'vue'
@@ -78,11 +80,13 @@ function resolveValues(values: any[] = [], _anchor?: Element) {
78
80
const anchor = index === values . length - 1 ? _anchor : undefined
79
81
if ( typeof value === 'function' ) {
80
82
renderEffect ( ( ) => {
83
+ pauseTracking ( )
81
84
if ( scopes [ index ] ) scopes [ index ] . stop ( )
82
85
scopes [ index ] = new EffectScope ( )
83
86
nodes [ index ] = scopes [ index ] . run ( ( ) =>
84
87
resolveValue ( nodes [ index ] , value ( ) , anchor ) ,
85
88
) !
89
+ resetTracking ( )
86
90
} )
87
91
} else {
88
92
nodes [ index ] = resolveValue ( nodes [ index ] , value , anchor )
You can’t perform that action at this time.
0 commit comments