chore: minor tweaks

This commit is contained in:
daiwei 2024-12-09 11:23:21 +08:00
parent ab617d57d7
commit 9e909466d1
1 changed files with 1 additions and 1 deletions

View File

@ -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()