#53Side-effectsHard

useHarmonicIntervalFn

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)
// TODO: implement useHarmonicIntervalFn
function notImplemented(..._args: any[]): any {
  throw new Error('Not implemented');
}
export default notImplemented;
export const useHarmonicIntervalFn = notImplemented;

Open browser consoleTests