Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
62
export
function
ref<T = any>(): Ref<T | undefined>
63
/*@__NO_SIDE_EFFECTS__*/
64
export
function
ref(value?: unknown) {
65
return
createRef(value, false)
66
}
67
68
declare
const
ShallowRefMarker: unique symbol
69
Callers
15
effectScope.spec.ts
File · 0.90
watch.spec.ts
File · 0.90
reactiveArray.spec.ts
File · 0.90
computed.spec.ts
File · 0.90
Item
Class · 0.90
reactive.spec.ts
File · 0.90
shallowReactive.spec.ts
File · 0.90
readonly.spec.ts
File · 0.90
toDisplayString.spec.ts
File · 0.90
customElement.spec.ts
File · 0.90
setup
Function · 0.90
patchProps.spec.ts
File · 0.90
Calls
1
createRef
Function · 0.85
Tested by
12
setup
Function · 0.72
setup
Function · 0.72
setup
Function · 0.72
setup
Function · 0.72
setup
Function · 0.40
setup
Function · 0.40
testRender
Function · 0.40
setup
Function · 0.40
setup
Function · 0.40
setup
Function · 0.40
setup
Function · 0.40
setup
Function · 0.40