Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
12 lines
617 B
Plaintext
12 lines
617 B
Plaintext
import type React from 'react';
|
|
type useThrottledEffect = (callback: React.EffectCallback, delay: number, deps: React.DependencyList) => void;
|
|
/**
|
|
* A hook that will throttle the execution of a callback function inside a useEffect.
|
|
* This is useful for things like throttling loading states or other UI updates.
|
|
* @param callback The callback function to be executed.
|
|
* @param delay The delay in milliseconds to throttle the callback.
|
|
* @param deps The dependencies to watch for changes.
|
|
*/
|
|
export declare const useThrottledEffect: useThrottledEffect;
|
|
export {};
|
|
//# sourceMappingURL=useThrottledEffect.d.ts.map |