"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = require("react");
function usePersistRef(value) {
    // eslint-disable-next-line react-hooks/rules-of-hooks
    const ref = (0, react_1.useRef)(value);
    ref.current = value;
    return ref;
}
exports.default = usePersistRef;
//# sourceMappingURL=use-persist-ref.js.map