react-use/docs/useHarmonicIntervalFn.md
2019-08-25 13:03:01 +02:00

326 B

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)