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

Function guardReactiveProps

packages/runtime-core/src/vnode.ts:647–652  ·  view source on GitHub ↗
(
  props: (Data & VNodeProps) | null,
)

Source from the content-addressed store, hash-verified

645}
646
647export function guardReactiveProps(
648 props: (Data & VNodeProps) | null,
649): (Data & VNodeProps) | null {
650 if (!props) return null
651 return isProxy(props) || isInternalObject(props) ? extend({}, props) : props
652}
653
654export function cloneVNode<T, U>(
655 vnode: VNode<T, U>,

Callers 1

_createVNodeFunction · 0.85

Calls 2

isProxyFunction · 0.90
isInternalObjectFunction · 0.90

Tested by

no test coverage detected