From 9e909466d103658fac2604f72e9287e8559edc90 Mon Sep 17 00:00:00 2001 From: daiwei Date: Mon, 9 Dec 2024 11:23:21 +0800 Subject: [PATCH] chore: minor tweaks --- 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 a13b81aab..242d41a7c 100644 --- a/packages/runtime-core/src/hydration.ts +++ b/packages/runtime-core/src/hydration.ts @@ -657,7 +657,7 @@ export function createHydrationFunctions( if (next && isComment(next) && next.data === ']') { return nextSibling((vnode.anchor = next)) } else { - if (!isMismatchAllowed(node.parentElement, 1 /* CHILDREN */)) { + if (!isMismatchAllowed(container, MismatchTypes.CHILDREN)) { // fragment didn't hydrate successfully, since we didn't get a end anchor // back. This should have led to node/children mismatch warnings. logMismatchError()