/* esm.sh - @radix-ui/react-use-previous@1.1.4 */
import*as u from"../../../../react@19.3.1/es2022/react.mjs";var t=Object.defineProperty,n=(e,r)=>t(e,"name",{value:r,configurable:!0});function o(e){let r=u.useRef({value:e,previous:e});return u.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}n(o,"usePrevious");export{o as usePrevious};
//# sourceMappingURL=react-use-previous.mjs.map