MCPcopy
hub / github.com/vuejs/core / isNodeMismatchAllowed

Function isNodeMismatchAllowed

packages/runtime-core/src/hydration.ts:1025–1031  ·  view source on GitHub ↗
(node: Node, vnode: VNode)

Source from the content-addressed store, hash-verified

1023}
1024
1025function isNodeMismatchAllowed(node: Node, vnode: VNode): boolean {
1026 return (
1027 isMismatchAllowed(node.parentElement, MismatchTypes.CHILDREN) ||
1028 isMismatchAllowedByNode(node) ||
1029 isMismatchAllowedByVNode(vnode)
1030 )
1031}
1032
1033function isMismatchAllowedByNode(node: Node): boolean {
1034 return (

Callers 1

handleMismatchFunction · 0.85

Calls 3

isMismatchAllowedFunction · 0.85
isMismatchAllowedByNodeFunction · 0.85
isMismatchAllowedByVNodeFunction · 0.85

Tested by

no test coverage detected