We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0617887 commit 617eb2fCopy full SHA for 617eb2f
packages/vue-jsx-vapor/src/core/runtime.ts
@@ -3,8 +3,10 @@ import {
3
insert,
4
isFragment,
5
isVaporComponent,
6
+ pauseTracking,
7
remove,
8
renderEffect,
9
+ resetTracking,
10
VaporFragment,
11
type Block,
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') {
82
renderEffect(() => {
83
+ pauseTracking()
84
if (scopes[index]) scopes[index].stop()
85
scopes[index] = new EffectScope()
86
nodes[index] = scopes[index].run(() =>
87
resolveValue(nodes[index], value(), anchor),
88
)!
89
+ resetTracking()
90
})
91
} else {
92
nodes[index] = resolveValue(nodes[index], value, anchor)
0 commit comments