1
1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
3
3
exports [` compile > bindings 1` ] = `
4
- "import { template as _template , children as _children , createTextNode as _createTextNode , insert as _insert , watchEffect as _watchEffect , setText as _setText } from 'vue/vapor';
4
+ "import { template as _template , children as _children , createTextNode as _createTextNode , insert as _insert , renderEffect as _renderEffect , setText as _setText } from 'vue/vapor';
5
5
6
6
export function render(_ctx) {
7
7
const t0 = _template (" <div>count is <!>.</div>" )
8
8
const n0 = t0 ()
9
9
const { 0: [n3 , { 1: [n2],}],} = _children(n0)
10
10
const n1 = _createTextNode(_ctx.count)
11
11
_insert(n1, n3, n2)
12
- _watchEffect (() => {
12
+ _renderEffect (() => {
13
13
_setText (n1 , undefined , _ctx .count )
14
14
} )
15
15
return n0
@@ -121,45 +121,45 @@ export function render(_ctx) {
121
121
` ;
122
122
123
123
exports [` compile > directives > v-pre > self-closing v-pre 1` ] = `
124
- "import { template as _template , children as _children , createTextNode as _createTextNode , append as _append , watchEffect as _watchEffect , setText as _setText , setAttr as _setAttr } from 'vue/vapor';
124
+ "import { template as _template , children as _children , createTextNode as _createTextNode , append as _append , renderEffect as _renderEffect , setText as _setText , setAttr as _setAttr } from 'vue/vapor';
125
125
126
126
export function render(_ctx) {
127
127
const t0 = _template (" <div></div><div><Comp></Comp></div>" )
128
128
const n0 = t0 ()
129
129
const { 1: [n2],} = _children (n0 )
130
130
const n1 = _createTextNode (_ctx .bar )
131
131
_append (n2 , n1 )
132
- _watchEffect (() => {
132
+ _renderEffect (() => {
133
133
_setText (n1 , undefined , _ctx .bar )
134
134
})
135
- _watchEffect (() => {
135
+ _renderEffect (() => {
136
136
_setAttr (n2 , " id" , undefined , _ctx .foo )
137
137
})
138
138
return n0
139
139
} "
140
140
` ;
141
141
142
142
exports [` compile > directives > v-pre > should not affect siblings after it 1` ] = `
143
- "import { template as _template , children as _children , createTextNode as _createTextNode , append as _append , watchEffect as _watchEffect , setText as _setText , setAttr as _setAttr } from 'vue/vapor';
143
+ "import { template as _template , children as _children , createTextNode as _createTextNode , append as _append , renderEffect as _renderEffect , setText as _setText , setAttr as _setAttr } from 'vue/vapor';
144
144
145
145
export function render(_ctx) {
146
146
const t0 = _template (" <div :id=\\ " foo \\" ><Comp></Comp>{{ bar }}</div><div><Comp></Comp></div>" )
147
147
const n0 = t0 ()
148
148
const { 1: [n2],} = _children (n0 )
149
149
const n1 = _createTextNode (_ctx .bar )
150
150
_append (n2 , n1 )
151
- _watchEffect (() => {
151
+ _renderEffect (() => {
152
152
_setText (n1 , undefined , _ctx .bar )
153
153
})
154
- _watchEffect (() => {
154
+ _renderEffect (() => {
155
155
_setAttr (n2 , " id" , undefined , _ctx .foo )
156
156
})
157
157
return n0
158
158
} "
159
159
` ;
160
160
161
161
exports [` compile > dynamic root 1` ] = `
162
- "import { fragment as _fragment , createTextNode as _createTextNode , append as _append , watchEffect as _watchEffect , setText as _setText } from 'vue/vapor';
162
+ "import { fragment as _fragment , createTextNode as _createTextNode , append as _append , renderEffect as _renderEffect , setText as _setText } from 'vue/vapor';
163
163
164
164
export function render(_ctx) {
165
165
const t0 = _fragment ()
@@ -168,18 +168,18 @@ export function render(_ctx) {
168
168
const n1 = _createTextNode (1 )
169
169
const n2 = _createTextNode (2 )
170
170
_append (n0 , n1 , n2 )
171
- _watchEffect (() => {
171
+ _renderEffect (() => {
172
172
_setText (n1 , undefined , 1 )
173
173
})
174
- _watchEffect (() => {
174
+ _renderEffect (() => {
175
175
_setText (n2 , undefined , 2 )
176
176
})
177
177
return n0
178
178
} "
179
179
` ;
180
180
181
181
exports [` compile > dynamic root nodes and interpolation 1` ] = `
182
- "import { template as _template , children as _children , createTextNode as _createTextNode , prepend as _prepend , insert as _insert , append as _append , on as _on , watchEffect as _watchEffect , setText as _setText , setAttr as _setAttr } from 'vue/vapor';
182
+ "import { template as _template , children as _children , createTextNode as _createTextNode , prepend as _prepend , insert as _insert , append as _append , on as _on , renderEffect as _renderEffect , setText as _setText , setAttr as _setAttr } from 'vue/vapor';
183
183
184
184
export function render(_ctx) {
185
185
const t0 = _template (" <button>foo<!>foo</button>" )
@@ -192,7 +192,7 @@ export function render(_ctx) {
192
192
_insert(n2, n4, n5)
193
193
_append(n4, n3)
194
194
_on(n4, "click", (...args) => (_ctx.handleClick && _ctx.handleClick(...args)))
195
- _watchEffect (() => {
195
+ _renderEffect (() => {
196
196
_setText (n1 , undefined , _ctx .count )
197
197
_setText (n2 , undefined , _ctx .count )
198
198
_setText (n3 , undefined , _ctx .count )
@@ -207,7 +207,7 @@ exports[`compile > expression parsing > interpolation 1`] = `
207
207
const t0 = _fragment ()
208
208
209
209
const n0 = t0 ()
210
- _watchEffect (() => {
210
+ _renderEffect (() => {
211
211
_setText (n0 , undefined , a + b .value )
212
212
})
213
213
return n0
@@ -219,7 +219,7 @@ exports[`compile > expression parsing > v-bind 1`] = `
219
219
const t0 = _template (" <div></div>" )
220
220
const n0 = t0 ()
221
221
const { 0: [n1],} = _children (n0 )
222
- _watchEffect (() => {
222
+ _renderEffect (() => {
223
223
_setAttr (n1 , key .value + 1 , undefined , _unref (foo )[key .value + 1 ]())
224
224
})
225
225
return n0
@@ -237,7 +237,7 @@ export function render(_ctx) {
237
237
` ;
238
238
239
239
exports [` compile > static + dynamic root 1` ] = `
240
- "import { template as _template , children as _children , createTextNode as _createTextNode , prepend as _prepend , insert as _insert , append as _append , watchEffect as _watchEffect , setText as _setText } from 'vue/vapor';
240
+ "import { template as _template , children as _children , createTextNode as _createTextNode , prepend as _prepend , insert as _insert , append as _append , renderEffect as _renderEffect , setText as _setText } from 'vue/vapor';
241
241
242
242
export function render(_ctx) {
243
243
const t0 = _template (" 3<!>6<!>9" )
@@ -255,28 +255,28 @@ export function render(_ctx) {
255
255
_insert ([n3 , n4 ], n0 , n9 )
256
256
_insert ([n5 , n6 ], n0 , n10 )
257
257
_append (n0 , n7 , n8 )
258
- _watchEffect (() => {
258
+ _renderEffect (() => {
259
259
_setText (n1 , undefined , 1 )
260
260
})
261
- _watchEffect (() => {
261
+ _renderEffect (() => {
262
262
_setText (n2 , undefined , 2 )
263
263
})
264
- _watchEffect (() => {
264
+ _renderEffect (() => {
265
265
_setText (n3 , undefined , 4 )
266
266
})
267
- _watchEffect (() => {
267
+ _renderEffect (() => {
268
268
_setText (n4 , undefined , 5 )
269
269
})
270
- _watchEffect (() => {
270
+ _renderEffect (() => {
271
271
_setText (n5 , undefined , 7 )
272
272
})
273
- _watchEffect (() => {
273
+ _renderEffect (() => {
274
274
_setText (n6 , undefined , 8 )
275
275
})
276
- _watchEffect (() => {
276
+ _renderEffect (() => {
277
277
_setText (n7 , undefined , ' A' )
278
278
})
279
- _watchEffect (() => {
279
+ _renderEffect (() => {
280
280
_setText (n8 , undefined , ' B' )
281
281
})
282
282
return n0
0 commit comments