# useDebouncedRef

useDebouncedRef

Inspired by Vue3 Offical Document customRef (opens new window) demo.

# Example

# Usage

<input v-model="text" />
1
import { useDebouncedRef } from '@vueblocks/vue-use-core'

export default {
  setup() {
    return {
      text: useDebouncedRef('hello')
    }
  }
}
1
2
3
4
5
6
7
8
9

# Typing

declare const useDebouncedRef: (value: any, delay?: number) => Ref;
1