6 lines
203 B
TypeScript
6 lines
203 B
TypeScript
|
/**
|
||
|
* Cache callback function that always return same ref instead.
|
||
|
* This is used for context optimization.
|
||
|
*/
|
||
|
export default function useMemoCallback<T extends (...args: any[]) => void>(func: T): T;
|