UNPKG

@hazae41/glacier

Version:

Yet another React data (re)fetching library

16 lines (13 loc) 290 B
import { useRef } from 'react'; /** * A ref whose content is updated on each render * @param current * @returns */ function useRenderRef(current) { const ref = useRef(current); ref.current = current; return ref; } export { useRenderRef }; //# sourceMappingURL=ref.mjs.map