Skip to content

Commit

Permalink
fix(ssr): handle the data-allow-mismatch component in ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhe141 committed Oct 25, 2024
1 parent ed01d92 commit 01fbcfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-core/src/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ export function createHydrationFunctions(
getContainerType(container),
optimized,
)

if (vnode.component!.subTree) {
vnode.el = vnode.component!.subTree.el
}
// #3787
// if component is async, it may get moved / unmounted before its
// inner component is loaded, so we need to give it a placeholder
Expand Down

0 comments on commit 01fbcfc

Please sign in to comment.