"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLayoutChange = void 0;
var react_1 = require("react");
var useResizeEffect_1 = require("./useResizeEffect");
exports.useLayoutChange = function (containerRef, fn, deps) {
    react_1.useLayoutEffect(fn, deps);
    useResizeEffect_1.useResizeEffect(containerRef, fn);
    var onLoad = function () {
        fn();
    };
    return { onLoad: onLoad };
};
