Skip to content

Commit

Permalink
fix(ssr): fix hydration for node with empty text node
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Nov 26, 2022
1 parent e3bc21f commit 70114ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runtime-core/src/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ export function createHydrationFunctions(
optimized
)
} else if (vnode.type === Text && !vnode.children) {
continue
//#7215 server rendered HTML won't contain a text node
insert(vnode.el = createText(''), container)
} else {
hasMismatch = true
if (__DEV__ && !hasWarned) {
Expand Down

0 comments on commit 70114ee

Please sign in to comment.