mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
15 lines
326 B
Markdown
15 lines
326 B
Markdown
# `useHarmonicIntervalFn`
|
|
|
|
Same as [`useInterval`](./useInterval.md) 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
|
|
|
|
```js
|
|
useHarmonicIntervalFn(fn, delay?: number)
|
|
```
|