UNPKG

@cran/lib.vue.ref

Version:

Vue Reactivity Extensions

13 lines (12 loc) 277 B
import { unwrap } from "../utility"; import { usePipe } from "./usePipe"; import { ref } from "vue"; /** * @since 0.2.0 * @category Controller */ export function useRef(source) { const target = ref(unwrap(source)); void usePipe(source, target); return target; }