Explorar el Código

chore: update

daiwei hace 1 año
padre
commit
b2efba8ff0
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1 5
      packages/runtime-core/src/hydration.ts

+ 1 - 5
packages/runtime-core/src/hydration.ts

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