Vue – Deep Unrefs

Similar to unref(), easily remove all refs recursively from an object using the deepUnref-composable.

? Get Started

Luckily, it’s incredibly easy to get your package development started with this slightly opinionated starter kit.

npm install @openweb/deep-unref-vue

??‍? Usage

import { deepUnref } from '@openweb/deep-unref-vue'

const form = {
  name: ref('Jane Doe'),
  email: ref('[email protected]'),

saveToApi({ ...deepUnref(form) })

? Testing

pnpm test

? Changelog

Please see our releases page for more information on what has changed recently.

?? Contributing

Please see CONTRIBUTING for details.

? Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Open Web Discord Server

? License

The MIT License (MIT). Please see LICENSE for more information.

Made with ❤️ by Open Web Labs.


View Github