Files
wdi-dashboard/node_modules/@chakra-ui/hooks/dist/use-callback-ref.d.mts
2024-08-16 15:06:52 +05:30

11 lines
333 B
TypeScript

/**
* React hook to persist any value between renders,
* but keeps it up-to-date if it changes.
*
* @param fn the function to persist
* @param deps the function dependency list
*/
declare function useCallbackRef<T extends (...args: any[]) => any>(fn: T | undefined, deps?: React.DependencyList): T;
export { useCallbackRef };