Category | Reactivity |
---|---|
Export Size | 264 B |
Last Changed | last year |
Computed reactive object. Instead of returning a ref that computed
does, reactiveComputed
returns a reactive object.
It is NOT supported by IE 11 or below.
import { reactiveComputed } from '@vueuse/core' const state = reactiveComputed(() => { return { foo: 'bar', bar: 'baz', } }) state.bar // 'baz'
/** * Computed reactive object. */ export declare function reactiveComputed<T extends {}>(fn: () => T): T
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/shared/reactiveComputed/