Skip to content

Commit 86055dd

Browse files
committed
chore: rebase
1 parent af04252 commit 86055dd

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

packages/runtime-core/src/hydration.ts

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -228,23 +228,6 @@ export function createHydrationFunctions(
228228
vnode.slotScopeIds = slotScopeIds
229229
const container = parentNode(node)!
230230

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-
248231
// Locate the next node.
249232
if (isFragmentStart) {
250233
// If it's a fragment: since components may be async, we cannot rely
@@ -259,6 +242,16 @@ export function createHydrationFunctions(
259242
nextNode = nextSibling(node)
260243
}
261244

245+
mountComponent(
246+
vnode,
247+
container,
248+
null,
249+
parentComponent,
250+
parentSuspense,
251+
isSVGContainer(container),
252+
optimized
253+
)
254+
262255
// #3787
263256
// if component is async, it may get moved / unmounted before its
264257
// inner component is loaded, so we need to give it a placeholder

0 commit comments

Comments
 (0)