blowfish/node_modules/@headlessui/react/dist/hooks/use-latest-value.js

2 lines
185 B
JavaScript
Raw Permalink Normal View History

2023-01-29 22:30:24 +00:00
import{useRef as t}from"react";import{useIsoMorphicEffect as o}from'./use-iso-morphic-effect.js';function s(e){let r=t(e);return o(()=>{r.current=e},[e]),r}export{s as useLatestValue};