import { useEffect, useRef } from 'react';
export var useIsMountedRef = function () {
    var isMountedRef = useRef(false);
    useEffect(function () {
        isMountedRef.current = true;
        return function () {
            isMountedRef.current = false;
        };
    });
    return isMountedRef;
};
