vue3-delay-watch
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Vue 3 Delay watch

Usage

import delayWatch from 'vue3-delay-watch'

const foo = ref('bar');

delayWatch(foo, (newVal, oldVal) => {
  console.log('foo did changed!', newVal);
}, 1000);

Arguments

  1. The watcher function or watched target (same as watch uses) (required)
  2. The watcher callback (required)
  3. The minimum delay in milliseconds between the update hooks (default is 1000)
  4. Sync callback without delay

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i vue3-delay-watch

    Weekly Downloads

    23

    Version

    0.1.2

    License

    ISC

    Unpacked Size

    7.06 kB

    Total Files

    15

    Last publish

    Collaborators

    • mauriceconrad