react-code-dataset / react-use /docs /useHarmonicIntervalFn.md
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
|
Raw History Blame Contribute Delete
326 Bytes

useHarmonicIntervalFn

Same as useInterval hook, but triggers all effects with the same delay at the same time.

For example, this allows you to create ticking clocks on the page which re-render second counter all at the same time.

Reference

useHarmonicIntervalFn(fn, delay?: number)