Initial commit
This commit is contained in:
7
node_modules/@radix-ui/react-use-callback-ref/dist/index.d.ts
generated
vendored
Normal file
7
node_modules/@radix-ui/react-use-callback-ref/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* 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 };
|
||||
Reference in New Issue
Block a user