@ant-design/pro-utils
Version:
6 lines (5 loc) • 516 B
TypeScript
import type { DependencyList } from 'react';
export declare const isDeepEqual: (a: any, b: any, ignoreKeys?: string[]) => boolean;
export declare function useDeepCompareMemoize(value: any, ignoreKeys?: any): undefined;
export declare function useDeepCompareEffect(effect: React.EffectCallback, dependencies: DependencyList, ignoreKeys?: string[]): void;
export declare function useDeepCompareEffectDebounce(effect: React.EffectCallback, dependencies: DependencyList, ignoreKeys?: string[], waitTime?: number): void;