Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vuejs/core
/ setup
Function
setup
packages/runtime-core/__tests__/helpers/useModel.spec.ts:33–39 ·
view source on GitHub ↗
(props)
Source
from the content-addressed store, hash-verified
31
props: [
'modelValue'
],
32
emits: [
'update:modelValue'
],
33
setup(props) {
34
foo = useModel(props,
'modelValue'
)
35
return
() => {
36
compRender()
37
return
foo.value
38
}
39
},
40
})
41
42
const
msg = ref(
''
)
Callers
nothing calls this directly
Calls
7
useModel
Function · 0.90
h
Function · 0.85
openBlock
Function · 0.85
createElementBlock
Function · 0.85
ref
Function · 0.50
watch
Function · 0.50
setValue
Function · 0.50
Tested by
no test coverage detected