2025-09-05 14:59:21 +08:00

9 lines
283 B
TypeScript

/**
* Schedule some task in the next frame.
*
* - If you call the returned function multiple times, only the last task will
* be executed.
* - If the component is unmounted, the task will be cancelled.
*/
export declare function useFrameDebounce(): (cb: () => void) => void;