rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
11 lines • 467 B
TypeScript
type UseGetIsMounted = () => () => boolean;
/**
* @description useGetIsMounted hook checks if a component is mounted or not at the time.
* Useful for async effects. Returns a callback that returns a boolean representing if the component
* is mounted at the time.
* @returns () => boolean
* @see https://rooks.vercel.app/docs/hooks/useGetIsMounted
*/
export declare const useGetIsMounted: UseGetIsMounted;
export {};
//# sourceMappingURL=useGetIsMounted.d.ts.map