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

Function createRef

packages/reactivity/src/ref.ts:104–109  ·  view source on GitHub ↗
(rawValue: unknown, shallow: boolean)

Source from the content-addressed store, hash-verified

102}
103
104function createRef(rawValue: unknown, shallow: boolean) {
105 if (isRef(rawValue)) {
106 return rawValue
107 }
108 return new RefImpl(rawValue, shallow)
109}
110
111/**
112 * @internal

Callers 2

refFunction · 0.85
shallowRefFunction · 0.85

Calls 1

isRefFunction · 0.70

Tested by

no test coverage detected