Skip to content

useIntervalFn

Category
Last Changed
8月5日18时4分

Wrapper for setInterval with controls

Demo

Hello

interval:

Usage

ts
import { useIntervalFn } from 'comuse-core'

const { pause, resume, isActive } = useIntervalFn(() => {
  /* your function */
}, 1000)

Source

SourceDemoDocs

Changelog

v4.1.1 on 8/5/2025
cfaae - feat: add useInterval

Released under the MIT License.