vue-deepunref

Deeply un-reference Vue objects.
155,261 15
Install
npm install vue-deepunref
Latest Version:1.0.1
Vue:3
License:MIT
Last Updated:Jan 11, 2022
Links: GitHub  ·  npm
Maintainer: danhulton

Vue deepUnref

The counterpart to Vue 3's toRefs, deepUnref will apply unref recursively until you have an object or array that is completely free of refs. Useful for when you need to pass, for example, a "form" object full of refs to a validation library or to a POST endpoint.

Installation

yarn add vue-deepunref npm install vue-deepunref

Usage

import { deepUnref } from 'vue-deepunref';

const form = {
  name: ref('Abc Def'),
  email: ref('abc@def.com'),
}

saveRest({ ...deepUnref(form) });

Related Packages

@ow3/deep-unref-vue

Easily remove all refs from an object using the `deepUnref`-composable.

8,626 4
vue-multi-ref

a vue v2 directive to bind the same ref for more than one element

1,517 12
vue-ref

use the callback to get a reference like react

914,598 100
@cran/lib.vue.ref

Vue Reactivity Extensions

1,216
unplugin-vue-component-ref

用于获取setup组件ref全部导出

329 11

Version History

Version Released License
1.0.1 MIT
1.0.0 MIT