useIntervalFn

useIntervalFn

コントロール付きの setInterval のラッパー

使用法

import { useIntervalFn } from '@vueuse/core'

const { pause, resume, isActive } = useIntervalFn(() => {
  /* あなたの関数 */
}, 1000)