@rbxts/pretty-react-hooks
Version:
Useful hooks for @rbxts/react
9 lines (8 loc) • 301 B
TypeScript
/// <reference types="@rbxts/compiler-types" />
/**
* Returns a memoized callback that wraps the latest version of the input
* callback.
* @param callback The callback to memoize.
* @returns The memoized callback.
*/
export declare function useLatestCallback<T extends Callback>(callback: T): T;