Category | Reactivity |
---|---|
Export Size | 92 B |
Last Changed | 2 weeks ago |
Alias | resolveUnref |
Related | toRef |
Get the value of value/ref/getter.
import { toValue } from '@vueuse/core' const foo = ref('hi') const a = toValue(0) // 0 const b = toValue(foo) // 'hi' const c = toValue(() => 'hi') // 'hi'
/** * Get the value of value/ref/getter. */ export declare function toValue<T>(r: MaybeRefOrGetter<T>): T /** * @deprecated use `toValue` instead */ export declare const resolveUnref: typeof toValue
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/shared/toValue/