useAsyncPreservedCallback
A custom hook that is similar to usePreservedCallback but returns a Promise.
Interface
const useAsyncPreservedCallback: <T extends (...args: any[]) => Promise<any>>(
callback: T
) => (...args: any[]) => Promise<any>;
A custom hook that is similar to usePreservedCallback but returns a Promise.
const useAsyncPreservedCallback: <T extends (...args: any[]) => Promise<any>>(
callback: T
) => (...args: any[]) => Promise<any>;