{"version":3,"file":"ref.cjs","sources":["../../../../src/libs/react/ref.ts"],"sourcesContent":["import { useRef } from \"react\";\n/**\n * A ref whose content is updated on each render\n * @param current\n * @returns\n */\nexport function useRenderRef(current) {\n    const ref = useRef(current);\n    ref.current = current;\n    return ref;\n}\n//# sourceMappingURL=ref.js.map"],"names":["useRef"],"mappings":";;;;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,OAAO,EAAE;AACtC,IAAI,MAAM,GAAG,GAAGA,YAAM,CAAC,OAAO,CAAC,CAAC;AAChC,IAAI,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC;AAC1B,IAAI,OAAO,GAAG,CAAC;AACf;;;;"}