UNPKG

react-async-iterators

Version:

The magic of JavaScript async iterators in React ⛓️ 🧬 🔃

8 lines 205 B
import { useRef } from 'react'; export { useLatest }; function useLatest(nextValue) { const ref = useRef(nextValue); ref.current = nextValue; return ref; } //# sourceMappingURL=useLatest.js.map