"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useFirstMountAfterLoading = void 0;
const react_1 = require("react");
function useFirstMountAfterLoading(isLoading) {
    const isFirst = (0, react_1.useRef)(true);
    if (isFirst.current && !isLoading) {
        isFirst.current = false;
        return true;
    }
    return isFirst.current;
}
exports.useFirstMountAfterLoading = useFirstMountAfterLoading;
