mirror of
https://github.com/hanzoai/agency.git
synced 2026-11-02 19:13:28 +00:00
8 lines
297 B
Plaintext
8 lines
297 B
Plaintext
/**
|
|
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
|
|
* prop or avoid re-executing effects when passed as a dependency
|
|
*/
|
|
declare function useCallbackRef<T extends (...args: any[]) => any>(callback: T | undefined): T;
|
|
|
|
export { useCallbackRef };
|