UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

12 lines 534 B
/** * A setTimeout hook that calls a callback after a timeout duration * when a condition is true * * @param callback The callback to be invoked after timeout * @param timeoutDelayMs Amount of time in ms after which to invoke * @param when The condition which when true, sets the timeout * @see https://react-hooks.org/docs/useTimeoutWhen */ declare function useTimeoutWhen(callback: () => void, timeoutDelayMs?: number, when?: boolean): void; export { useTimeoutWhen }; //# sourceMappingURL=useTimeoutWhen.d.ts.map