"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useDidUpdateEffect = void 0;
var react_1 = require("react");
var useDidUpdateEffect = function (callback, dependencies) {
    var didMountRef = (0, react_1.useRef)(false);
    (0, react_1.useEffect)(function () {
        if (didMountRef.current)
            callback();
        else
            didMountRef.current = true;
    }, dependencies); //eslint-disable-line
};
exports.useDidUpdateEffect = useDidUpdateEffect;
