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

Function toValue

packages/reactivity/src/ref.ts:252–254  ·  view source on GitHub ↗
(source: MaybeRefOrGetter<T>)

Source from the content-addressed store, hash-verified

250 * @see {@link https://vuejs.org/api/reactivity-utilities.html#tovalue}
251 */
252export function toValue<T>(source: MaybeRefOrGetter<T>): T {
253 return isFunction(source) ? source() : unref(source)
254}
255
256const shallowUnwrapHandlers: ProxyHandler<any> = {
257 get: (target, key, receiver) =>

Callers 4

ref.spec.tsFile · 0.85
plainTypeFunction · 0.85
fooFunction · 0.85
ref.test-d.tsFile · 0.85

Calls 2

isFunctionFunction · 0.90
unrefFunction · 0.85

Tested by

no test coverage detected