UNPKG

@hazae41/glacier

Version:

Yet another React data (re)fetching library

18 lines (14 loc) 321 B
'use strict'; var react = require('react'); /** * A ref whose content is updated on each render * @param current * @returns */ function useRenderRef(current) { const ref = react.useRef(current); ref.current = current; return ref; } exports.useRenderRef = useRenderRef; //# sourceMappingURL=ref.cjs.map