@@ -18,7 +18,8 @@ import {
18
18
MoveType ,
19
19
SetupRenderEffectFn ,
20
20
RendererNode ,
21
- RendererElement
21
+ RendererElement ,
22
+ ElementNamespace
22
23
} from '../renderer'
23
24
import { queuePostFlushCb } from '../scheduler'
24
25
import { filterSingleRoot , updateHOCHostEl } from '../componentRenderUtils'
@@ -63,7 +64,7 @@ export const SuspenseImpl = {
63
64
anchor : RendererNode | null ,
64
65
parentComponent : ComponentInternalInstance | null ,
65
66
parentSuspense : SuspenseBoundary | null ,
66
- isSVG : boolean ,
67
+ namespace : ElementNamespace ,
67
68
slotScopeIds : string [ ] | null ,
68
69
optimized : boolean ,
69
70
// platform-specific impl passed from renderer
@@ -76,7 +77,7 @@ export const SuspenseImpl = {
76
77
anchor ,
77
78
parentComponent ,
78
79
parentSuspense ,
79
- isSVG ,
80
+ namespace ,
80
81
slotScopeIds ,
81
82
optimized ,
82
83
rendererInternals
@@ -88,7 +89,7 @@ export const SuspenseImpl = {
88
89
container ,
89
90
anchor ,
90
91
parentComponent ,
91
- isSVG ,
92
+ namespace ,
92
93
slotScopeIds ,
93
94
optimized ,
94
95
rendererInternals
@@ -130,7 +131,7 @@ function mountSuspense(
130
131
anchor : RendererNode | null ,
131
132
parentComponent : ComponentInternalInstance | null ,
132
133
parentSuspense : SuspenseBoundary | null ,
133
- isSVG : boolean ,
134
+ namespace : ElementNamespace ,
134
135
slotScopeIds : string [ ] | null ,
135
136
optimized : boolean ,
136
137
rendererInternals : RendererInternals
@@ -147,7 +148,7 @@ function mountSuspense(
147
148
container ,
148
149
hiddenContainer ,
149
150
anchor ,
150
- isSVG ,
151
+ namespace ,
151
152
slotScopeIds ,
152
153
optimized ,
153
154
rendererInternals
@@ -161,7 +162,7 @@ function mountSuspense(
161
162
null ,
162
163
parentComponent ,
163
164
suspense ,
164
- isSVG ,
165
+ namespace ,
165
166
slotScopeIds
166
167
)
167
168
// now check if we have encountered any async deps
@@ -179,7 +180,7 @@ function mountSuspense(
179
180
anchor ,
180
181
parentComponent ,
181
182
null , // fallback tree will not have suspense context
182
- isSVG ,
183
+ namespace ,
183
184
slotScopeIds
184
185
)
185
186
setActiveBranch ( suspense , vnode . ssFallback ! )
@@ -195,7 +196,7 @@ function patchSuspense(
195
196
container : RendererElement ,
196
197
anchor : RendererNode | null ,
197
198
parentComponent : ComponentInternalInstance | null ,
198
- isSVG : boolean ,
199
+ namespace : ElementNamespace ,
199
200
slotScopeIds : string [ ] | null ,
200
201
optimized : boolean ,
201
202
{ p : patch , um : unmount , o : { createElement } } : RendererInternals
@@ -218,7 +219,7 @@ function patchSuspense(
218
219
null ,
219
220
parentComponent ,
220
221
suspense ,
221
- isSVG ,
222
+ namespace ,
222
223
slotScopeIds ,
223
224
optimized
224
225
)
@@ -232,7 +233,7 @@ function patchSuspense(
232
233
anchor ,
233
234
parentComponent ,
234
235
null , // fallback tree will not have suspense context
235
- isSVG ,
236
+ namespace ,
236
237
slotScopeIds ,
237
238
optimized
238
239
)
@@ -267,7 +268,7 @@ function patchSuspense(
267
268
null ,
268
269
parentComponent ,
269
270
suspense ,
270
- isSVG ,
271
+ namespace ,
271
272
slotScopeIds ,
272
273
optimized
273
274
)
@@ -281,7 +282,7 @@ function patchSuspense(
281
282
anchor ,
282
283
parentComponent ,
283
284
null , // fallback tree will not have suspense context
284
- isSVG ,
285
+ namespace ,
285
286
slotScopeIds ,
286
287
optimized
287
288
)
@@ -296,7 +297,7 @@ function patchSuspense(
296
297
anchor ,
297
298
parentComponent ,
298
299
suspense ,
299
- isSVG ,
300
+ namespace ,
300
301
slotScopeIds ,
301
302
optimized
302
303
)
@@ -311,7 +312,7 @@ function patchSuspense(
311
312
null ,
312
313
parentComponent ,
313
314
suspense ,
314
- isSVG ,
315
+ namespace ,
315
316
slotScopeIds ,
316
317
optimized
317
318
)
@@ -330,7 +331,7 @@ function patchSuspense(
330
331
anchor ,
331
332
parentComponent ,
332
333
suspense ,
333
- isSVG ,
334
+ namespace ,
334
335
slotScopeIds ,
335
336
optimized
336
337
)
@@ -349,7 +350,7 @@ function patchSuspense(
349
350
null ,
350
351
parentComponent ,
351
352
suspense ,
352
- isSVG ,
353
+ namespace ,
353
354
slotScopeIds ,
354
355
optimized
355
356
)
@@ -376,7 +377,7 @@ export interface SuspenseBoundary {
376
377
vnode : VNode < RendererNode , RendererElement , SuspenseProps >
377
378
parent : SuspenseBoundary | null
378
379
parentComponent : ComponentInternalInstance | null
379
- isSVG : boolean
380
+ namespace : ElementNamespace
380
381
container : RendererElement
381
382
hiddenContainer : RendererElement
382
383
anchor : RendererNode | null
@@ -413,7 +414,7 @@ function createSuspenseBoundary(
413
414
container : RendererElement ,
414
415
hiddenContainer : RendererElement ,
415
416
anchor : RendererNode | null ,
416
- isSVG : boolean ,
417
+ namespace : ElementNamespace ,
417
418
slotScopeIds : string [ ] | null ,
418
419
optimized : boolean ,
419
420
rendererInternals : RendererInternals ,
@@ -455,7 +456,7 @@ function createSuspenseBoundary(
455
456
vnode,
456
457
parent : parentSuspense ,
457
458
parentComponent,
458
- isSVG ,
459
+ namespace ,
459
460
container,
460
461
hiddenContainer,
461
462
anchor,
@@ -576,7 +577,7 @@ function createSuspenseBoundary(
576
577
return
577
578
}
578
579
579
- const { vnode, activeBranch, parentComponent, container, isSVG } =
580
+ const { vnode, activeBranch, parentComponent, container, namespace } =
580
581
suspense
581
582
582
583
// invoke @fallback event
@@ -594,7 +595,7 @@ function createSuspenseBoundary(
594
595
next ( activeBranch ! ) ,
595
596
parentComponent ,
596
597
null , // fallback tree will not have suspense context
597
- isSVG ,
598
+ namespace ,
598
599
slotScopeIds ,
599
600
optimized
600
601
)
@@ -675,7 +676,7 @@ function createSuspenseBoundary(
675
676
// consider the comment placeholder case.
676
677
hydratedEl ? null : next ( instance . subTree ) ,
677
678
suspense ,
678
- isSVG ,
679
+ namespace ,
679
680
optimized
680
681
)
681
682
if ( placeholder ) {
@@ -721,7 +722,7 @@ function hydrateSuspense(
721
722
vnode : VNode ,
722
723
parentComponent : ComponentInternalInstance | null ,
723
724
parentSuspense : SuspenseBoundary | null ,
724
- isSVG : boolean ,
725
+ namespace : ElementNamespace ,
725
726
slotScopeIds : string [ ] | null ,
726
727
optimized : boolean ,
727
728
rendererInternals : RendererInternals ,
@@ -742,7 +743,7 @@ function hydrateSuspense(
742
743
node . parentNode ! ,
743
744
document . createElement ( 'div' ) ,
744
745
null ,
745
- isSVG ,
746
+ namespace ,
746
747
slotScopeIds ,
747
748
optimized ,
748
749
rendererInternals ,
0 commit comments