useAsyncPreservedCallback
usePreservedCallback 과 유사하나 Promise를 반환하는 커스텀 훅입니다.
Interface
const useAsyncPreservedCallback: <T extends (...args: any[]) => Promise<any>>(
callback: T
) => (...args: any[]) => Promise<any>;
usePreservedCallback 과 유사하나 Promise를 반환하는 커스텀 훅입니다.
const useAsyncPreservedCallback: <T extends (...args: any[]) => Promise<any>>(
callback: T
) => (...args: any[]) => Promise<any>;