import { useRef } from 'react';
export default function usePersistRef(value) {
    // eslint-disable-next-line react-hooks/rules-of-hooks
    const ref = useRef(value);
    ref.current = value;
    return ref;
}
//# sourceMappingURL=use-persist-ref.js.map