From 8d4c569e299e554aa086c8ebdfcd37b70168e702 Mon Sep 17 00:00:00 2001 From: liulinboyi <814921718@qq.com> Date: Thu, 26 May 2022 21:03:08 +0800 Subject: [PATCH] fix(runtime-core): hydrate Static vnode --- packages/runtime-core/src/hydration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/hydration.ts b/packages/runtime-core/src/hydration.ts index 3637a09b2aa..5eb37d457f2 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -150,7 +150,7 @@ export function createHydrationFunctions( } break case Static: - if (domType !== DOMNodeTypes.ELEMENT) { + if (domType !== DOMNodeTypes.ELEMENT && domType !== DOMNodeTypes.TEXT) { nextNode = onMismatch() } else { // determine anchor, adopt content