import { useEffect, useRef } from 'react';
/** Returns true only during the component's first render. */
export const useIsMount = () => {
    const isMountRef = useRef(true);
    useEffect(() => {
        isMountRef.current = false;
    }, []);
    return isMountRef.current;
};
export default useIsMount;
