Blame view

天文台pc/tianwentai-ui/node_modules/@radix-ui/react-use-callback-ref/dist/index.d.mts 297 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
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 };