Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Feb 1, 2025
1 parent b7e1163 commit b2efba8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/runtime-core/src/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1003,9 +1003,5 @@ function isMismatchAllowedForCommentNode(
node: Node,
{ props }: VNode,
): boolean {
return (
node.nodeType === DOMNodeTypes.COMMENT &&
props != null &&
hasOwn(props, allowMismatchAttr)
)
return isComment(node) && props != null && hasOwn(props, allowMismatchAttr)
}

0 comments on commit b2efba8

Please sign in to comment.