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

Function unref

packages/reactivity/src/ref.ts:232–234  ·  view source on GitHub ↗
(ref: MaybeRef<T> | ComputedRef<T>)

Source from the content-addressed store, hash-verified

230 * @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
231 */
232export function unref<T>(ref: MaybeRef<T> | ComputedRef<T>): T {
233 return isRef(ref) ? ref.value : ref
234}
235
236/**
237 * Normalizes values / refs / getters to values.

Callers 10

ref.spec.tsFile · 0.90
toValueFunction · 0.85
ref.tsFile · 0.85
valueMethod · 0.85
ssrRenderFunction · 0.85
_mountMethod · 0.85
plainTypeFunction · 0.85
bailTypeFunction · 0.85
testUnrefGenericsFunction · 0.85
ref.test-d.tsFile · 0.85

Calls 1

isRefFunction · 0.70

Tested by 1

ssrRenderFunction · 0.68