@@ -69,7 +69,6 @@ export const SuspenseImpl = {
69
69
anchor ,
70
70
parentComponent ,
71
71
isSVG ,
72
- optimized ,
73
72
rendererInternals
74
73
)
75
74
}
@@ -121,8 +120,7 @@ function mountSuspense(
121
120
null ,
122
121
parentComponent ,
123
122
suspense ,
124
- isSVG ,
125
- optimized
123
+ isSVG
126
124
)
127
125
// now check if we have encountered any async deps
128
126
if ( suspense . deps > 0 ) {
@@ -135,8 +133,7 @@ function mountSuspense(
135
133
anchor ,
136
134
parentComponent ,
137
135
null , // fallback tree will not have suspense context
138
- isSVG ,
139
- optimized
136
+ isSVG
140
137
)
141
138
setActiveBranch ( suspense , vnode . ssFallback ! )
142
139
} else {
@@ -152,7 +149,6 @@ function patchSuspense(
152
149
anchor : RendererNode | null ,
153
150
parentComponent : ComponentInternalInstance | null ,
154
151
isSVG : boolean ,
155
- optimized : boolean ,
156
152
{ p : patch , um : unmount , o : { createElement } } : RendererInternals
157
153
) {
158
154
const suspense = ( n2 . suspense = n1 . suspense ) !
@@ -173,8 +169,7 @@ function patchSuspense(
173
169
null ,
174
170
parentComponent ,
175
171
suspense ,
176
- isSVG ,
177
- optimized
172
+ isSVG
178
173
)
179
174
if ( suspense . deps <= 0 ) {
180
175
suspense . resolve ( )
@@ -186,8 +181,7 @@ function patchSuspense(
186
181
anchor ,
187
182
parentComponent ,
188
183
null , // fallback tree will not have suspense context
189
- isSVG ,
190
- optimized
184
+ isSVG
191
185
)
192
186
setActiveBranch ( suspense , newFallback )
193
187
}
@@ -220,8 +214,7 @@ function patchSuspense(
220
214
null ,
221
215
parentComponent ,
222
216
suspense ,
223
- isSVG ,
224
- optimized
217
+ isSVG
225
218
)
226
219
if ( suspense . deps <= 0 ) {
227
220
suspense . resolve ( )
@@ -233,8 +226,7 @@ function patchSuspense(
233
226
anchor ,
234
227
parentComponent ,
235
228
null , // fallback tree will not have suspense context
236
- isSVG ,
237
- optimized
229
+ isSVG
238
230
)
239
231
setActiveBranch ( suspense , newFallback )
240
232
}
@@ -247,8 +239,7 @@ function patchSuspense(
247
239
anchor ,
248
240
parentComponent ,
249
241
suspense ,
250
- isSVG ,
251
- optimized
242
+ isSVG
252
243
)
253
244
// force resolve
254
245
suspense . resolve ( true )
@@ -261,8 +252,7 @@ function patchSuspense(
261
252
null ,
262
253
parentComponent ,
263
254
suspense ,
264
- isSVG ,
265
- optimized
255
+ isSVG
266
256
)
267
257
if ( suspense . deps <= 0 ) {
268
258
suspense . resolve ( )
@@ -279,8 +269,7 @@ function patchSuspense(
279
269
anchor ,
280
270
parentComponent ,
281
271
suspense ,
282
- isSVG ,
283
- optimized
272
+ isSVG
284
273
)
285
274
setActiveBranch ( suspense , newBranch )
286
275
} else {
@@ -300,8 +289,7 @@ function patchSuspense(
300
289
null ,
301
290
parentComponent ,
302
291
suspense ,
303
- isSVG ,
304
- optimized
292
+ isSVG
305
293
)
306
294
if ( suspense . deps <= 0 ) {
307
295
// incoming branch has no async deps, resolve now.
@@ -327,7 +315,6 @@ export interface SuspenseBoundary {
327
315
parent : SuspenseBoundary | null
328
316
parentComponent : ComponentInternalInstance | null
329
317
isSVG : boolean
330
- optimized : boolean
331
318
container : RendererElement
332
319
hiddenContainer : RendererElement
333
320
anchor : RendererNode | null
@@ -392,7 +379,6 @@ function createSuspenseBoundary(
392
379
parent,
393
380
parentComponent,
394
381
isSVG,
395
- optimized,
396
382
container,
397
383
hiddenContainer,
398
384
anchor,
@@ -499,8 +485,7 @@ function createSuspenseBoundary(
499
485
activeBranch,
500
486
parentComponent,
501
487
container,
502
- isSVG,
503
- optimized
488
+ isSVG
504
489
} = suspense
505
490
506
491
// invoke @fallback event
@@ -522,8 +507,7 @@ function createSuspenseBoundary(
522
507
anchor ,
523
508
parentComponent ,
524
509
null , // fallback tree will not have suspense context
525
- isSVG ,
526
- optimized
510
+ isSVG
527
511
)
528
512
setActiveBranch ( suspense , fallbackVNode )
529
513
}
0 commit comments