An open API service indexing awesome lists of open source software.

https://github.com/ilham89/vue-use-debounce-ref


https://github.com/ilham89/vue-use-debounce-ref

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Vue Debounce Using Ref

## Installation

### npm

```shell
npm i vue-use-debounce-ref
```

### yarn

```shell
yarn add vue-use-debounce-ref
```

## Usage

### Vue

```jsx


Search

Value: {{ input }}

import { watch } from 'vue'
import useDebouncedRef from "vue-use-debounce-ref";
export default {
setup() {
const input = useDebouncedRef('', 1000)

watch(input, newData => {
console.log({ newData })
// init an API request
})
return {
input,
}
},
}

```