File tree Expand file tree Collapse file tree 1 file changed +10
-17
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -228,23 +228,6 @@ export function createHydrationFunctions(
228
228
vnode . slotScopeIds = slotScopeIds
229
229
const container = parentNode ( node ) !
230
230
231
- // component may be async, so in the case of fragments we cannot rely
232
- // on component's rendered output to determine the end of the fragment
233
- // instead, we do a lookahead to find the end anchor node.
234
- nextNode = isFragmentStart
235
- ? locateClosingAnchor ( node )
236
- : nextSibling ( node )
237
-
238
- mountComponent (
239
- vnode ,
240
- container ,
241
- null ,
242
- parentComponent ,
243
- parentSuspense ,
244
- isSVGContainer ( container ) ,
245
- optimized
246
- )
247
-
248
231
// Locate the next node.
249
232
if ( isFragmentStart ) {
250
233
// If it's a fragment: since components may be async, we cannot rely
@@ -259,6 +242,16 @@ export function createHydrationFunctions(
259
242
nextNode = nextSibling ( node )
260
243
}
261
244
245
+ mountComponent (
246
+ vnode ,
247
+ container ,
248
+ null ,
249
+ parentComponent ,
250
+ parentSuspense ,
251
+ isSVGContainer ( container ) ,
252
+ optimized
253
+ )
254
+
262
255
// #3787
263
256
// if component is async, it may get moved / unmounted before its
264
257
// inner component is loaded, so we need to give it a placeholder
You can’t perform that action at this time.
0 commit comments