ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
17 lines • 845 B
TypeScript
/// <reference types="react" />
/**
* @deprecated use `useState` instead, since React no longer
* issues warnings when calling setState on unmounted components.
*/
export declare function useSafeSetState<T>(initialState?: T | (() => T)): [T | undefined, React.Dispatch<React.SetStateAction<T>>];
export declare function usePrevious(value: any): undefined;
export declare function useDeepCompareEffect(callback: any, inputs: any): void;
/**
* A hook that returns true once a delay has expired.
* @param ms The delay in milliseconds
* @param key A key that can be used to reset the timer
* @returns true if the delay has expired, false otherwise
*/
export declare function useTimeout(ms?: number, key?: string): boolean;
export declare function useIsMounted(): import("react").MutableRefObject<boolean>;
//# sourceMappingURL=hooks.d.ts.map