node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import {useRef as $8LvvK$useRef, useMemo as $8LvvK$useMemo} from "react";
function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
const ref = $8LvvK$useRef({
value: value,
previous: value
}); // We compare values before making an update to ensure that
// a change has been made. This ensures the previous value is
// persisted correctly between renders.
return $8LvvK$useMemo(()=>{
if (ref.current.value !== value) {
ref.current.previous = ref.current.value;
ref.current.value = value;
}
return ref.current.previous;
}, [
value
]);
}
export {$010c2913dbd2fe3d$export$5cae361ad82dce8b as usePrevious};
//# sourceMappingURL=index.mjs.map