"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useIsInitialLayoutEffect = void 0;
var react_1 = require("react");
exports.useIsInitialLayoutEffect = function (effectFn, deps) {
    var isInitial = react_1.useRef(true);
    react_1.useLayoutEffect(function () {
        var currentIsInitial = isInitial.current;
        isInitial.current = false;
        return effectFn(currentIsInitial);
    }, deps); // eslint-disable-line react-hooks/exhaustive-deps
};
