UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

11 lines 455 B
/** * usePreviousDifferent hook for React * It returns the past value which was different from the current one. * * @param currentValue The value whose previously different value is to be tracked * @returns The previous value * @see https://react-hooks.org/docs/usePreviousDifferent */ declare function usePreviousDifferent<T>(currentValue: T): T | null; export { usePreviousDifferent }; //# sourceMappingURL=usePreviousDifferent.d.ts.map