4 lines
189 B
Plaintext
4 lines
189 B
Plaintext
export type ShouldUpdateFunc<T> = (prev?: T, next?: T) => boolean;
|
|
declare function usePrevious<T>(state: T, shouldUpdate?: ShouldUpdateFunc<T>): T | undefined;
|
|
export default usePrevious;
|