UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

13 lines 648 B
/** * A setInterval hook that calls a callback after a interval duration * when a condition is true * * @param callback The callback to be invoked after interval * @param intervalDurationMs Amount of time in ms after which to invoke * @param when The condition which when true, sets the interval * @param startImmediate If the callback should be invoked immediately * @see https://react-hooks.org/docs/useIntervalWhen */ declare function useIntervalWhen(callback: () => void, intervalDurationMs?: number, when?: boolean, startImmediate?: boolean): void; export { useIntervalWhen }; //# sourceMappingURL=useIntervalWhen.d.ts.map