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

Function ref

packages/reactivity/src/ref.ts:64–66  ·  view source on GitHub ↗
(value?: unknown)

Source from the content-addressed store, hash-verified

62export function ref<T = any>(): Ref<T | undefined>
63/*@__NO_SIDE_EFFECTS__*/
64export function ref(value?: unknown) {
65 return createRef(value, false)
66}
67
68declare const ShallowRefMarker: unique symbol
69

Callers 15

watch.spec.tsFile · 0.90
computed.spec.tsFile · 0.90
ItemClass · 0.90
reactive.spec.tsFile · 0.90
readonly.spec.tsFile · 0.90
setupFunction · 0.90
patchProps.spec.tsFile · 0.90

Calls 1

createRefFunction · 0.85

Tested by 12

setupFunction · 0.72
setupFunction · 0.72
setupFunction · 0.72
setupFunction · 0.72
setupFunction · 0.40
setupFunction · 0.40
testRenderFunction · 0.40
setupFunction · 0.40
setupFunction · 0.40
setupFunction · 0.40
setupFunction · 0.40
setupFunction · 0.40